DateTime.newUtc

glib.date_time.DateTime newUtc(int year, int month, int day, int hour, int minute, double seconds)

Creates a new #GDateTime corresponding to the given date and time in UTC.

This call is equivalent to calling [glib.date_time.DateTime.new_] with the time zone returned by [glib.time_zone.TimeZone.newUtc].

Parameters

yearthe year component of the date
monththe month component of the date
daythe day component of the date
hourthe hour component of the date
minutethe minute component of the date
secondsthe number of seconds past the minute

Returns

a #GDateTime, or null