UnixEpoch Class

 

Represents the reference date used in timestamp that has a value of 00:00:00 UTC on January 1 1970.

Namespace:   Microsoft.Azure.KeyVault
Assembly:  Microsoft.Azure.KeyVault (in Microsoft.Azure.KeyVault.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Azure.KeyVault.UnixEpoch

Syntax

public static class UnixEpoch
[ExtensionAttribute]
public ref class UnixEpoch abstract sealed 
[<AbstractClass>]
[<Sealed>]
type UnixEpoch = class end
<ExtensionAttribute>
Public NotInheritable Class UnixEpoch

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static FromUnixTime(Int64)

Converts the number of seconds since midnight (UTC) on 1st January 1970 to date.

System_CAPS_pubmethodSystem_CAPS_static Now()

Gets the current time as the number of seconds since midnight (UTC) on 1st January 1970.

System_CAPS_pubmethodSystem_CAPS_static ToUnixTime(DateTime)

Returns the number of seconds after Unix Epoch (January 1 1970 00:00:00 GMT, until the given time).

Fields

Name Description
System_CAPS_pubfieldSystem_CAPS_static EpochDate

The reference date for the epoch (00:00:00 UTC 1 January 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.

See Also

Microsoft.Azure.KeyVault Namespace

Return to top