new

fun new(tz: TimeZone, year: Int, month: Int, day: Int, hour: Int, minute: Int, seconds: Double): DateTime?

Creates a new #GDateTime corresponding to the given date and time in the time zone @tz.

The @year must be between 1 and 9999, @month between 1 and 12 and @day between 1 and 28, 29, 30 or 31 depending on the month and the year.

Return

a new #GDateTime, or null

Since

2.26

Parameters

tz

a #GTimeZone

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