Method | Description | |
---|---|---|
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 | |
return | System |
public EpochTime ( ulong secondsSince1970 ) : System | ||
secondsSince1970 | ulong | Number of seconds since the start of 1970. |
return | System |
public static TryParseSeconds ( string seconds, |
||
seconds | string | String containing number of seconds since start of 1970. |
epochTime | Output parameter containing new EpochTime | |
return | bool |