EpochTime.GetIntDate(DateTime) Method

Definition

Gets the number of seconds from 1970-01-01T0:0:0Z as measured in UTC until the desired date/time.

public static long GetIntDate (DateTime datetime);
static member GetIntDate : DateTime -> int64
Public Shared Function GetIntDate (datetime As DateTime) As Long

Parameters

datetime
DateTime

The DateTime to convert to seconds.

Returns

The number of seconds since Unix Epoch.

Remarks

If datetime is less than Unix Epoch, returns 0.

Applies to