TimeVal.fromIso8601

Converts a string containing an ISO 8601 encoded date and time to a glib.TimeVal and puts it into time_.

iso_date must include year, month, day, hours, minutes, and seconds. It can optionally include fractions of a second and a time zone indicator. (In the absence of any time zone indication, the timestamp is assumed to be in local time.)

Any leading or trailing space in iso_date is ignored.

This function was deprecated, along with glib.TimeVal itself, in GLib 2.62. Equivalent functionality is available using code like: |[ GDateTime *dt = g_date_time_new_from_iso8601 (iso8601_string, NULL); gint64 time_val = g_date_time_to_unix (dt); g_date_time_unref (dt);

Deprecated: [glib.TimeVal.TimeVal|glib.TimeVal] is not year-2038-safe. Use
[glib.Date.Date.timeNewFromIso8601|Date.timeNewFromIso8601] instead.

Params:
    isoDate = an ISO 8601 encoded date string
    time = a [glib.TimeVal.TimeVal|glib.TimeVal]

Returns: `TRUE` if the conversion was successful.

Since: 2.12
class TimeVal
static
bool
fromIso8601
(
string isoDate
,)