UnixEpoch.ToUnixTime Method
Returns the number of seconds after Unix Epoch (January 1 1970 00:00:00 GMT, until the given time).
Namespace: Microsoft.KeyVault.Client
Assembly: Microsoft.KeyVault.Client (in Microsoft.KeyVault.Client.dll)
Syntax
'Declaration
[ExtensionAttribute]
public static int ToUnixTime (
DateTime dateTime
)
Parameters
- dateTime
The date, in UTC form.
Return Value
Number of seconds from January 1 1970.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012
Target Platforms
See Also
Reference
UnixEpoch Class
UnixEpoch Members
Microsoft.KeyVault.Client Namespace