Method | Description | |
---|---|---|
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 | |
return | long |
public static UnixToDateTime ( long timestamp ) : System.DateTime | ||
timestamp | long | |
return | System.DateTime |