mktime

mktime — converts the ASCII date and time data in a tm class to Unix time.

Syntax

mktime (time_t)

		

Arguments

tm

A tm class, as created by localtime or gmtime

Returns

The time, usually expressed as the number of seconds from midnight January 1, 1970 on UNIX systems, though it may differ across implementations.

Example

Gamma> princ ("Local breakout to Unix:\t", mktime (localtime(1149261975.5000002)), "\n");
Local breakout to Unix:	1149261975
t
Gamma>  
		

See Also

gmtime, localtime