DateTime.toTimeval

Stores the instant in time that datetime represents into tv.

The time contained in a glib.TimeVal is always stored in the form of seconds elapsed since 1970-01-01 00:00:00 UTC, regardless of the time zone associated with datetime.

On systems where 'long' is 32bit (ie: all 32bit systems and all Windows systems), a glib.TimeVal is incapable of storing the entire range of values that gstreamer.DateTime is capable of expressing. On those systems, this function returns FALSE to indicate that the time is out of range.

On systems where 'long' is 64bit, this function never fails.

More...
class DateTime
bool
toTimeval

Parameters

tv TimeVal

a glib.TimeVal to modify

Return Value

Type: bool

TRUE if successful, else FALSE

Detailed Description

Deprecated: glib.TimeVal is not year-2038-safe. Use Date.timeToUnix instead.

Meta

Since

2.26