Time
Object Hierarchy:
GLib.Time
GLib.Time
GLib.Time
Description:
[ CCode ( cname = "struct tm" , has_type_id = false ) ]public struct Time
Structure holding a calendar date and time broken down into its components.
Content:
Static methods:
public static Time gm (time_t time)
Converts given time since epoch as time_t value into calendar time,
expressed in Coordinated Universal Time (UTC).
public static Time local (time_t time)
Converts given time since epoch as time_t value into calendar time,
expressed in local time.
Methods:
Fields:
public int second
Seconds after the minute – [0, 60]
public int minute
Minutes after the hour – [0, 59]
public int hour
Hours since midnight – [0, 23]
public int day
Day of the month – [1, 31]
public int month
Months since January – [0, 11]
public int year
Years since 1900
public int weekday
Days since Sunday – [0, 6]
public int day_of_year
Days since January 1 – [0, 365]
public int isdst
Daylight Saving Time flag. The value is positive if DST is in effect, zero
if not and negative if no information is available