newFromUnixUtcUsec

fun newFromUnixUtcUsec(usecs: <Error class: unknown class>): DateTime?

Creates a struct@GLib.DateTime corresponding to the given Unix time @t in UTC.

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

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 method@GLib.DateTime.unref when you are done with it.

Return

a new struct@GLib.DateTime, or NULL

Since

2.80

Parameters

usecs

the Unix time in microseconds