GLib.TimeVal.from_iso8601

function from_iso8601(iso_date: String): [ok: Boolean, time_: GLib.TimeVal] {
    // Gjs wrapper for g_time_val_from_iso8601()
}
  

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.)

Since 2.12

iso_date

an ISO 8601 encoded date string

ok

true if the conversion was successful.

time_

a GLib.TimeVal