MKTIME Prototype

[ return to article ]

The MKTIME procedure converts a TM structure into a time_t value.

Prototype

.....DName+++++++++++EUDS.......Length+TDc.Functions++++++++++++++++++++++++++++
     D mkTime          PR            10I 0 Extproc('mktime')
     D  struct_TM                          Like(tm)


The first parameter is an initialized TM structure. That value in the TM structure is converted into a time_t integer value, and returned.

Use this procedure to translate a TM structure into a TM value. This allows a more familiar TM structure to be initialized through whatever means necessary, and then convert that value to a TIME_T value that is used by various other time-related procedures.