Method ToSecondsSinceEpoch
ToSecondsSinceEpoch(DateTime)
Converts a DateTime to number of seconds since Unix epoch.
public static long ToSecondsSinceEpoch(DateTime dateTime)
Parameters
dateTime
DateTimeA DateTime.
Returns
- long
Number of seconds since Unix epoch.