LOCALTIME Prototype

[ return to article ]

The LOCALTIME function returns a pointer to an initialized TM structure.

Prototype

.....DName+++++++++++EUDS.......Length+TDc.Functions++++++++++++++++++++++++++++
     D localtime       PR              *   Extproc('localtime')
     D  time_t                             Like(time_t)


The first parameter is TIME_T value. This is a 10i0 (4-byte integer) value containing the date/time value that is used to initialize a TM data structure. Use the time procedure to retrieve the current time_t value.

A pointer to an initialized TM structure is returned.

Use this procedure to translate a TIME_T value to a TM structure value that is used by the asctime, mktime, and strftime procedures.