next up previous 216
Next: PSX_CALLOC - Allocate space for several objects of specified type
Up: Routine Descriptions
Previous: Routine Descriptions


PSX_ASCTIME - Convert a time structure to a character string

Description:
Convert the information in the structure pointed to by TSTRCT to a character string. TSTRCT should have been set by a call to PSX_LOCALTIME or PSX_GMTIME.

Invocation:
CALL PSX_ASCTIME( TSTRCT, STRING, STATUS )

Arguments:

TSTRCT = POINTER (Given)
The pointer to the time structure.
STRING = CHARACTER * ( * ) (Returned)
The character string representation of the time.
STATUS = INTEGER (Given)
The global status.

Examples:

CALL PSX_TIME( NTICKS, STATUS )
CALL PSX_LOCALTIME( NTICKS, SEC, MINS, HOUR, DAY, MONTH, YEAR,
: WDAY, YDAY, ISDST, TSTRCT, STATUS )
CALL PSX_ASCTIME( TSTRCT, STRING, STATUS )
PRINT *,'The time is ', STRING
Prints the current local time as something like:
"Wed Apr 17 09:01:04 1991" (without the quotes).

Notes:

External Routines Used
cnf: cnfCptr, cnfExprt

References

Copyright
Copyright (C) 1991 Science & Engineering Research Council


next up previous 216
Next: PSX_CALLOC - Allocate space for several objects of specified type
Up: Routine Descriptions
Previous: Routine Descriptions

PSX POSIX interface routines
Starlink User Note 121
P M Allan
A J Chipperfield
10 April 2003
E-mail:ussc@star.rl.ac.uk

Copyright © 2000 Council for the Central Laboratory of the Research Councils