UnixEpoch.ToUnixTime Method (DateTime)
Returns the number of seconds after Unix Epoch (January 1 1970 00:00:00 GMT, until the given time).
Namespace: Microsoft.Azure.KeyVault
Assembly: Microsoft.Azure.KeyVault (in Microsoft.Azure.KeyVault.dll)
Syntax
public static long ToUnixTime(
this DateTime dateTime
)
public:
[ExtensionAttribute]
static long long ToUnixTime(
DateTime dateTime
)
static member ToUnixTime :
dateTime:DateTime -> int64
<ExtensionAttribute>
Public Shared Function ToUnixTime (
dateTime As Date
) As Long
Parameters
dateTime
Type: System.DateTimeThe date, in UTC form.
Return Value
Type: System.Int64
Number of seconds from January 1 1970.
See Also
UnixEpoch Class
Microsoft.Azure.KeyVault Namespace
Return to top