GLib.DateTime.new_local
function new_local(year: Number(gint), month: Number(gint), day: Number(gint), hour: Number(gint), minute: Number(gint), seconds: Number(gdouble)): GLib.DateTime {
// Gjs wrapper for g_date_time_new_local()
}
Creates a new GLib.DateTime corresponding to the given date and time in the local time zone.
This call is equivalent to calling GLib.DateTime.new with the time zone returned by GLib.TimeZone.new_local.
Since 2.26
- year
the year component of the date
- month
the month component of the date
- day
the day component of the date
- hour
the hour component of the date
- minute
the minute component of the date
- seconds
the number of seconds past the minute
- Returns
a GLib.DateTime, or null