Clib.mktime()
syntax: |
Clib.mktime(timeObj) |
where: |
timeObj - time variable in the Time object format.
|
return: |
number - time integer, or -1 if time cannot be converted or represented.
|
description: |
This method converts timeObj (an object as returned by Clib.localtime()) to the time format returned by Clib.time() (an integer). All undefined elements of timeObj will be set to 0 before the conversion. It returns -1 if time cannot be converted or represented.
In other words, while Clib.localtime() converts from a time integer to a Time object, Clib.mktime() converts from a Time object to a time integer.
|