DateTimeExtensions.ToUnixTime Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

ToUnixTime(DateTime)

Gets the current Unix time for the specified date (UTC), i.e. the number of seconds since 1970-01-01T00:00:00Z.

public static long ToUnixTime(this DateTime date)

Parameters

date
System.DateTime

Returns

long