C# Class ServerUtils.TimeUtils

Show file Open project: fingerpasswang/Phial.Fantasy

Public Methods

Method Description
DateTimeToUnixTime ( System.DateTime time ) : uint
DateTimeToUnixTimeDouble ( System.DateTime time ) : double
GetNowDateTime ( ) : System.DateTime
GetNowUnixTime ( ) : uint
GetNowUnixTimeDouble ( ) : double
UnixTimeDoubleToDateTime ( double sec ) : System.DateTime
UnixTimeToDateTime ( uint sec ) : System.DateTime

Method Details

DateTimeToUnixTime() public static method

public static DateTimeToUnixTime ( System.DateTime time ) : uint
time System.DateTime
return uint

DateTimeToUnixTimeDouble() public static method

public static DateTimeToUnixTimeDouble ( System.DateTime time ) : double
time System.DateTime
return double

GetNowDateTime() public static method

public static GetNowDateTime ( ) : System.DateTime
return System.DateTime

GetNowUnixTime() public static method

public static GetNowUnixTime ( ) : uint
return uint

GetNowUnixTimeDouble() public static method

public static GetNowUnixTimeDouble ( ) : double
return double

UnixTimeDoubleToDateTime() public static method

public static UnixTimeDoubleToDateTime ( double sec ) : System.DateTime
sec double
return System.DateTime

UnixTimeToDateTime() public static method

public static UnixTimeToDateTime ( uint sec ) : System.DateTime
sec uint
return System.DateTime