DateTimeUtility.ToUnixTimestamp method

Returns the converted DateTime, in seconds since Unix epoch.

public static long ToUnixTimestamp(DateTime date)
parameter description
date The UTC DateTime requiring conversion.

Return Value

Returns the number of seconds the provided UTC DateTime is greater than the Unix epoch (1/1/1970).

See Also