Méthode | Description | |
---|---|---|
ToDateTimeFromEpoch ( this secondsSince1970 ) : DateTime |
Converts the given epoch time to a DateTime with DateTimeKind.Utc kind.
|
|
ToDateTimeOffsetFromEpoch ( this secondsSince1970 ) : DateTimeOffset |
Converts the given epoch time to a UTC DateTimeOffset.
|
|
ToEpochTime ( this dateTime ) : long |
Converts the given date value to epoch time.
|
public static ToDateTimeFromEpoch ( this secondsSince1970 ) : DateTime | ||
secondsSince1970 | this | The seconds to convert |
Résultat | DateTime |
public static ToDateTimeOffsetFromEpoch ( this secondsSince1970 ) : DateTimeOffset | ||
secondsSince1970 | this | The seconds to convert |
Résultat | DateTimeOffset |
public static ToEpochTime ( this dateTime ) : long | ||
dateTime | this | The data to convert |
Résultat | long |