메소드 | 설명 | |
---|---|---|
DateTimeToUnix ( System.DateTime dateTime ) : long |
Takes a DateTime and converts it to the seconds since 1/1/1970 represented as a Int64 (long). The passed DateTime is preferably occurring after 1/1/1970, behavior is undefined otherwise.
|
|
UnixToDateTime ( long timestamp ) : System.DateTime |
public static DateTimeToUnix ( System.DateTime dateTime ) : long | ||
dateTime | System.DateTime | |
리턴 | long |
public static UnixToDateTime ( long timestamp ) : System.DateTime | ||
timestamp | long | |
리턴 | System.DateTime |