Symisc Systems

Libcox Command Reference


Star Follow @symisc

Command Syntax

mktime [hour = date("H") [minute = date("i") [second = date("s") [month = date("n") [day = date("j") [year = date("Y") [is_dst = -1 ]]]]]]]


Alias

None


Description

Returns the Unix timestamp corresponding to the arguments given. This timestamp is a 64bit integer containing the number of seconds between the Unix Epoch (January 1 1970 00:00:00 GMT) and the time specified. Arguments may be left out in order from right to left; any arguments thus omitted will be set to the current value according to the local date and time.


Parameters

hour/minute/second/month/day/year/is_dst

All Optional Parameters: Expected values (All integer).


Return Value

64-Bit Integer: mktime Returns the Unix timestamp corresponding to the arguments given. This timestamp is a 64bit integer containing the number of seconds between the Unix Epoch (January 1 1970 00:00:00 GMT) and the time specified. Arguments may be left out in order from right to left; any arguments thus omitted will be set to the current value according to the local date and time. Use libcox_value_to_int64() to extract the processing result.