CTIME Prototype

[ return to article ]

The CTIME procedure returns the character string form of the date and time value stored in a time_t value.

Prototype

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


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

The returned value is a pointer to a character string. The character string contains the date and time formatted for the local system. Use the %STR built-in function to copy the value to a character field.