DateTime.newFromTimevalUtc

Creates a #GDateTime corresponding to the given #GTimeVal tv in UTC.

The time contained in a #GTimeVal is always stored in the form of seconds elapsed since 1970-01-01 00:00:00 UTC.

This call can fail (returning null) if tv 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.

More...
class DateTime
static
newFromTimevalUtc

Parameters

tv glib.time_val.TimeVal

a #GTimeVal

Return Value

Type: glib.date_time.DateTime

a new #GDateTime, or null

Detailed Description

Deprecated: #GTimeVal is not year-2038-safe. Use glib.date_time.DateTime.newFromUnixUtc instead.