DateTime.this

Creates a GDateTime corresponding to the given GTimeVal tv. The time contained in a GTimeVal is always stored in the form of seconds elapsed since 1970-01-01 00:00:00 UTC, regardless of the local time offset.

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 unref() when you are done with it. Since 2.26

Parameters

tv TimeVal

a GTimeVal

utc bool

If true use utc else use the local timezone.

Throws

ConstructionException GTK+ fails to create the object.

Meta