Extracted from Pike v7.3 release 14 at 2002-02-15.
pike.roxen.com
[Top]

Method mktime()


Method mktime

int mktime(mapping(string:int) tm)
int mktime(int sec, int min, int hour, int mday, int mon, int year, int isdst, int tz)

Description

This function converts information about date and time into an integer which contains the number of seconds since the beginning of 1970.

You can either call this function with a mapping containing the following elements:

"sec" : int(0..60)

Seconds over the minute.

"min" : int(0..59)

Minutes over the hour.

"hour" : int(0..23)

Hour of the day.

"mday" : int(1..31)

Day of the month.

"mon" : int(0..11)

Month of the year.

"year" : int(0..)

Year since 1900.

"isdst" : int(0..1)

Is daylight savings time.

"timezone" : int(-12..12)

The timezone offset from UTC in seconds.


Or you can just send them all on one line as the second syntax suggests.

See also

time, ctime, localtime, gmtime