DateTime.newNow
glib.date_time.DateTime newNow(glib.time_zone.TimeZone tz)Creates a #GDateTime corresponding to this exact instant in the given time zone tz. The time is as accurate as the system allows, to a maximum accuracy of 1 microsecond.
This function will always succeed unless GLib is still being used after the year 9999.
You should release the return value by calling [glib.date_time.DateTime.unref] when you are done with it.
Parameters
tz | a #GTimeZone |
Returns
a new #GDateTime, or null