11 Date/Time Functions

This chapter describes the date/time functions available with DEC C for OpenVMS Systems. For more detailed information on each function, see the Reference Section.

Table 11-1 Date/Time Functions

Function  Description 
asctime   Converts a broken-down time from localtime into a 26-character string. 
ctime   Converts a time, in seconds, since 00:00:00, January 1, 1970 to an ASCII string of the form generated by the asctime function. 
ftime   Returns the elapsed time since 00:00:00, January 1, 1970 in the structure pointed to by its argument. 
getclock  Gets the current value of the system- wide clock. 
gettimeofday  Gets the date and time. 
gmtime   Converts time units to GMT (Greenwich Mean Time). 
localtime  Converts a time (expressed as the number of seconds elapsed since 00:00:00, January 1, 1970) into hours, minutes, seconds, and so on. 
mktime   Converts a local time structure to a calendar time value. 
time  Returns the time elapsed since 00:00:00, January 1, 1970, in seconds. 
tzset  Sets and accesses time-zone conversion. 

Also, the time-related information returned by fstat and stat uses the new date/time model described in the next section.


Previous Page | Next Page | Table of Contents | Index