- public int64 from_date (Date date)
Convert a GDate to a Zeitgeist timestamp
- public int64 from_dmy (DateDay day, DateMonth month, DateYear year)
Convert a day, month, year tuple into a Zeitgeist timestamp
- public int64 from_iso8601 (string datetime)
Parse a timestamp from an ISO8601-encoded string.
- public int64 from_now ()
Return the current timestamp in milliseconds.
- public int64 from_timeval (TimeVal timeval)
Convert a GLib.TimeVal to an amount of
milliseconds since the Unix Epoch
- public int64 next_midnight (int64 timestamp)
Calculate the timestamp for the next midnight after the given
timestamp.
- public int64 prev_midnight (int64 timestamp)
Calculate the timestamp for the midnight just before the given
timestamp.
- public Date to_date (int64 timestamp)
Write a timestamp to a GLib.Date
structure
- public string to_iso8601 (int64 timestamp)
Convert a timestamp to a human-readable ISO8601 format
- public TimeVal to_timeval (int64 timestamp)
Write a Zeitgeist timestamp to a GLib.TimeVal
instance. Note that Zeitgeist uses only a millisecond resolution, whereas GLib.TimeVal has
microsecond resolution. This means that the lower three digits of @tv.tv_usec will always be 0.