TimeVal
Object Hierarchy:
Description:
public struct TimeVal
Represents a precise time, with seconds and microseconds.
Similar to the struct timeval returned by the gettimeofday
UNIX system call.
GLib is attempting to unify around the use of 64bit integers to represent microsecond-precision time. As such, this type will be removed
from a future version of GLib.
Content:
Creation methods:
Methods:
- public void get_current_time ()
- public void add (long microseconds)
Adds the given number of microseconds to
this.
- public bool from_iso8601 (string iso_date)
Converts a string containing an ISO 8601 encoded date and time to a
TimeVal and puts it into time_
.
- public string to_iso8601 ()
Converts this into an RFC 3339
encoded string, relative to the Coordinated Universal Time (UTC).
Fields: