DateTime.from_timeval_utc


Description:

[ Version ( deprecated_since = "2.62" ) ]
public DateTime.from_timeval_utc (TimeVal tv)

Warning: DateTime.from_timeval_utc is deprecated since 2.62.

Creates a DateTime corresponding to the given TimeVal tv in UTC.

Note:

TimeVal is not year-2038-safe. Use DateTime.from_unix_utc instead.

The time contained in a TimeVal 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 DateTime.

You should release the return value by calling g_date_time_unref when you are done with it.

Parameters:

tv

a TimeVal

Returns:

a new DateTime, or null