Table of Contents

Method GetUnixTime

Namespace
DSharpPlus
Assembly
DSharpPlus.dll

GetUnixTime(DateTimeOffset)

Helper method to calculate Unix time seconds from a System.DateTimeOffset for targets that do not support this natively.

public static long GetUnixTime(DateTimeOffset dto)

Parameters

dto DateTimeOffset

System.DateTimeOffset to calculate Unix time for.

Returns

long

Calculated Unix time.