Method GetUnixTime
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
GetUnixTime(DateTimeOffset)
Helper method to calculate Unix time seconds from a DateTimeOffset for targets that do not support this natively.
public static long GetUnixTime(DateTimeOffset dto)
Parameters
dto
DateTimeOffsetDateTimeOffset to calculate Unix time for.
Returns
- long
Calculated Unix time.