C# Class AcTools.Utils.Helpers.DateTimeExtension

显示文件 Open project: gro-ove/actools

Public Methods

Method Description
CompareByDays ( this a, System.DateTime b ) : int
IsSameDay ( this a, System.DateTime b ) : bool
ToDateTime ( this l ) : System.DateTime
ToMillisecondsTimestamp ( this d ) : long
ToUnixTimestamp ( this d ) : long

Method Details

CompareByDays() public static method

public static CompareByDays ( this a, System.DateTime b ) : int
a this
b System.DateTime
return int

IsSameDay() public static method

public static IsSameDay ( this a, System.DateTime b ) : bool
a this
b System.DateTime
return bool

ToDateTime() public static method

public static ToDateTime ( this l ) : System.DateTime
l this
return System.DateTime

ToMillisecondsTimestamp() public static method

public static ToMillisecondsTimestamp ( this d ) : long
d this
return long

ToUnixTimestamp() public static method

public static ToUnixTimestamp ( this d ) : long
d this
return long