DateTime.newFromUnixLocalUsec

glib.date_time.DateTime newFromUnixLocalUsec(long usecs)

Creates a [glib.date_time.DateTime] corresponding to the given Unix time t in the local time zone.

Unix time is the number of microseconds that have elapsed since 1970-01-01 00:00:00 UTC, regardless of the local time offset.

This call can fail (returning NULL) if t represents a time outside of the supported range of #GDateTime.

You should release the return value by calling [glib.date_time.DateTime.unref] when you are done with it.

Parameters

usecsthe Unix time in microseconds

Returns

a new [glib.date_time.DateTime], or NULL