should be freed with [glib.date_time.DateTime.unref], or null
DateTime.toTimezone
glib.date_time.DateTime toTimezone(glib.time_zone.TimeZone tz)Create a new #GDateTime corresponding to the same instant in time as datetime, but in the time zone tz.
This call can fail in the case that the time goes out of bounds. For example, converting 0001-01-01 00:00:00 UTC to a time zone west of Greenwich will fail (due to the year 0 being out of range).
Parameters
tz | the new #GTimeZone |
Returns
the newly created #GDateTime which