to_timeval


Description:

[ Version ( deprecated_since = "2.62" ) ]
public bool to_timeval (out TimeVal tv)

Warning: to_timeval is deprecated since 2.62.

Stores the instant in time that this represents into tv.

Note:

TimeVal is not year-2038-safe. Use to_unix instead.

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

On systems where 'long' is 32bit (ie: all 32bit systems and all Windows systems), a TimeVal is incapable of storing the entire range of values that 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.

Parameters:

this

a DateTime

tv

a TimeVal to modify

Returns:

true if successful, else false