DateTime.newLocal

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

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

class DateTime
static
newLocal
(
int year
,
int month
,
int day
,
int hour
,
int minute
,
double seconds
)

Parameters

year int

the year component of the date

month int

the month component of the date

day int

the day component of the date

hour int

the hour component of the date

minute int

the minute component of the date

seconds double

the number of seconds past the minute

Return Value

Type: glib.date_time.DateTime

a #GDateTime, or null