GLib.DateTime.prototype.to_utc
function to_utc(): GLib.DateTime {
// Gjs wrapper for g_date_time_to_utc()
}
Creates a new GLib.DateTime corresponding to the same instant in time as datetime, but in UTC.
This call is equivalent to calling GLib.DateTime.prototype.to_timezone with the time zone returned by GLib.TimeZone.new_utc.
Since 2.26
- Returns
the newly created GLib.DateTime