프로퍼티 | 타입 | 설명 | |
---|---|---|---|
UnixEpoch | System.DateTime |
메소드 | 설명 | |
---|---|---|
CurrentUnixMs ( ) : long |
Return the current number of milliseconds since the Unix epoch (1 Jan., 1970 UTC).
|
|
DateTimeToUnixMs ( System.DateTime dateTime ) : long |
Return the number of milliseconds since the Unix epoch (1 Jan., 1970 UTC) for a given DateTime value.
|
|
UnixMsToDateTime ( long unixMs ) : System.DateTime |
Create a DateTime value from the number of milliseconds since the Unix epoch (1 Jan., 1970 UTC).
|
메소드 | 설명 | |
---|---|---|
DateTimeUtilities ( ) : System |
public static DateTimeToUnixMs ( System.DateTime dateTime ) : long | ||
dateTime | System.DateTime | A UTC DateTime value not before epoch. |
리턴 | long |
public static UnixMsToDateTime ( long unixMs ) : System.DateTime | ||
unixMs | long | Number of milliseconds since the epoch. |
리턴 | System.DateTime |