Returns the converted DateTime, in seconds since Unix epoch.
public static long ToUnixTimestamp(DateTime date)
parameter | description |
---|---|
date | The UTC DateTime requiring conversion. |
Returns the number of seconds the provided UTC DateTime is greater than the Unix epoch (1/1/1970).