GLib.TimeZone.new_local
function new_local(): GLib.TimeZone {
// Gjs wrapper for g_time_zone_new_local()
}
Creates a GLib.TimeZone corresponding to local time. The local time zone may change between invocations to this function; for example, if the system administrator changes it.
This is equivalent to calling GLib.TimeZone.new with the value of the `TZ` environment variable (including the possibility of null).
You should release the return value by calling GLib.TimeZone.prototype.unref when you are done with it.
Since 2.26
- Returns
the local timezone