C# Class Orc.Extensions.DateTimeExtensions

ファイルを表示 Open project: Orcomp/Orcomp

Public Methods

Method Description
Ceil ( this date, System.TimeSpan span ) : System.DateTime
Floor ( this date, System.TimeSpan span ) : System.DateTime
IsEqualTo ( this d1, System.DateTime d2, int accuracyInMilliseconds ) : bool
IsGreaterThan ( this d1, System.DateTime d2, int accuracyInMilliseconds ) : bool
IsLessThan ( this d1, System.DateTime d2, int accuracyInMilliseconds ) : bool
Round ( this date, System.TimeSpan span ) : System.DateTime
ToNearestSecond ( this d1 ) : System.DateTime
TruncateToSecond ( this original ) : System.DateTime

Method Details

Ceil() public static method

public static Ceil ( this date, System.TimeSpan span ) : System.DateTime
date this
span System.TimeSpan
return System.DateTime

Floor() public static method

public static Floor ( this date, System.TimeSpan span ) : System.DateTime
date this
span System.TimeSpan
return System.DateTime

IsEqualTo() public static method

public static IsEqualTo ( this d1, System.DateTime d2, int accuracyInMilliseconds ) : bool
d1 this
d2 System.DateTime
accuracyInMilliseconds int
return bool

IsGreaterThan() public static method

public static IsGreaterThan ( this d1, System.DateTime d2, int accuracyInMilliseconds ) : bool
d1 this
d2 System.DateTime
accuracyInMilliseconds int
return bool

IsLessThan() public static method

public static IsLessThan ( this d1, System.DateTime d2, int accuracyInMilliseconds ) : bool
d1 this
d2 System.DateTime
accuracyInMilliseconds int
return bool

Round() public static method

public static Round ( this date, System.TimeSpan span ) : System.DateTime
date this
span System.TimeSpan
return System.DateTime

ToNearestSecond() public static method

public static ToNearestSecond ( this d1 ) : System.DateTime
d1 this
return System.DateTime

TruncateToSecond() public static method

public static TruncateToSecond ( this original ) : System.DateTime
original this
return System.DateTime