Метод | Описание | |
---|---|---|
EpochTime ( DateTimeOffset offset ) : System |
Create a new EpochTime from an existing DateTimeOffset.
|
|
EpochTime ( ulong secondsSince1970 ) : System |
Create a new EpochTime with a given number of seconds since the start of 1970.
|
|
ToDateTimeOffset ( ) : DateTimeOffset |
Return an EpochTime as a DateTimeOffset.
|
|
ToString ( ) : string |
Return a string containing the number of seconds since 1970.
|
|
ToUtcString ( ) : string |
Return a string with the EpochTime represented as a UTC date format.
|
|
TryParseSeconds ( string seconds, |
Try and parse a string representing seconds into an EpochTime.
|
public EpochTime ( DateTimeOffset offset ) : System | ||
offset | DateTimeOffset | |
Результат | System |
public EpochTime ( ulong secondsSince1970 ) : System | ||
secondsSince1970 | ulong | Number of seconds since the start of 1970. |
Результат | System |
public ToDateTimeOffset ( ) : DateTimeOffset | ||
Результат | DateTimeOffset |
public static TryParseSeconds ( string seconds, |
||
seconds | string | String containing number of seconds since start of 1970. |
epochTime | Output parameter containing new EpochTime | |
Результат | bool |