메소드 | 설명 | |
---|---|---|
ToDateTime ( this secondsSince1970 ) : System.DateTime |
Converts the given epoch time to a DateTime with DateTimeKind.Utc kind.
|
|
ToDateTimeOffset ( this secondsSince1970 ) : DateTimeOffset |
Converts the given epoch time to a UTC DateTimeOffset.
|
|
ToUnixTime ( this dateTime ) : long |
Converts the given date value to epoch/unix time.
|
public static ToDateTime ( this secondsSince1970 ) : System.DateTime | ||
secondsSince1970 | this | The seconds to convert |
리턴 | System.DateTime |
public static ToDateTimeOffset ( this secondsSince1970 ) : DateTimeOffset | ||
secondsSince1970 | this | The seconds to convert |
리턴 | DateTimeOffset |
public static ToUnixTime ( this dateTime ) : long | ||
dateTime | this | The data to convert |
리턴 | long |