GLib.DateTime.prototype.to_local

function to_local(): GLib.DateTime {
    // Gjs wrapper for g_date_time_to_local()
}
  

Creates a new GLib.DateTime corresponding to the same instant in time as datetime, but in the local time zone.

This call is equivalent to calling GLib.DateTime.prototype.to_timezone with the time zone returned by GLib.TimeZone.new_local.

Since 2.26

Returns

the newly created GLib.DateTime