ASCTIME Prototype

[ return to article ]

The ASCTIME procedure returns the character string form of the date and time value stored in a TM data structure.

Prototype

.....DName+++++++++++EUDS.......Length+TDc.Functions++++++++++++++++++++++++++++
     D asctime         PR              *   Extproc('asctime')
     D  struct_tm                          const like(TM)


The first parameter is STRUCT_TM. You must pass a TM data structure as the first parameter. The TM data structure must be initialized to the desired date and time. Use time and localtime functions to initialize the TM structure or initialize it yourself