Метод | Описание | |
---|---|---|
ToDateTimeOffset ( long timestamp ) : DateTimeOffset |
Converts a Unix timestamp (number of milliseconds since the Epoch) to a DateTimeOffset.
|
|
ToDateTimeOffset ( long timestamp ) : DateTimeOffset? |
Converts a Unix timestamp (number of milliseconds since the Epoch) to a DateTimeOffset.
|
|
ToTimestamp ( this dateTimeOffset ) : long |
Converts a DateTimeOffset value to a Unix-style timestamp (number of milliseconds since the Epoch).
|
|
ToTimestamp ( this dateTimeOffset ) : long? |
Converts a DateTimeOffset value to a Unix-style timestamp (number of milliseconds since the Epoch).
|
public static ToDateTimeOffset ( long timestamp ) : DateTimeOffset | ||
timestamp | long | The Unix timestamp. |
Результат | DateTimeOffset |
public static ToDateTimeOffset ( long timestamp ) : DateTimeOffset? | ||
timestamp | long | The Unix timestamp, or |
Результат | DateTimeOffset? |
public static ToTimestamp ( this dateTimeOffset ) : long | ||
dateTimeOffset | this | The |
Результат | long |
public static ToTimestamp ( this dateTimeOffset ) : long? | ||
dateTimeOffset | this | The |
Результат | long? |