Next: PSX_TTYNAME - Get the name of the terminal
Up: Routine Descriptions
Previous: PSX_SRAND - Set the seed for the random number generator
PSX_TIME
- Get the current calendar time
- Description:
- Determine the current calendar time. The encoding of the value is
unspecified, but is the number of ticks since some date in the
past. If it is not possible to get the value of NTICKS, STATUS is
set to PSX__NOTIM and an error is reported.
- Invocation:
- CALL PSX_TIME( NTICKS, STATUS )
- Arguments:
-
-
NTICKS = INTEGER (Returned)
-
The current time.
-
STATUS = INTEGER (Given and Returned)
-
The global status.
- Notes:
- This routine is not directly useful in itself, but the value
returned in NTICKS can be passed to other routines that process
it further.
-
References
- POSIX standard (1988), section 4.5.1
- ANSI C standard (1989), section 4.12.2.4
-
Copyright
- Copyright (C) 1991 Science & Engineering Research Council
Next: PSX_TTYNAME - Get the name of the terminal
Up: Routine Descriptions
Previous: PSX_SRAND - Set the seed for the random number generator
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