Function
GLibDateTimenew_from_unix_utc
Description
Creates a GDateTime
corresponding to the given Unix time t
in UTC.
Unix time is the number of seconds 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 g_date_time_unref()
when you are done with it.
Available since: | 2.26 |
Return value
Returns: | GDateTime |
A new |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. | |
The return value can be NULL . |