mktime


Description:

[ CCode ( cname = "mktime" ) ]
public time_t mktime ()

Converts local calendar time to a time since epoch as a time_t object, ignoring the values of GLib.Time.weekday GLib.Time.day_of_year

The values of other components of time are not restricted to their usual ranges. A negative value of GLib.Time.isdst causes mktime to attempt to determine if Daylight Saving Time was in effect.

If successful, recalculates and updates all fields in time to fit their proper ranges.

Returns:

time since epoch as a time_t object on success or -1 if time cannot be represented as a time_t object.