C# Class Orc.Extensions.DateTimeExtensions

Afficher le fichier Open project: Orcomp/Orcomp

Méthodes publiques

Méthode 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 méthode

public static Ceil ( this date, System.TimeSpan span ) : System.DateTime
date this
span System.TimeSpan
Résultat System.DateTime

Floor() public static méthode

public static Floor ( this date, System.TimeSpan span ) : System.DateTime
date this
span System.TimeSpan
Résultat System.DateTime

IsEqualTo() public static méthode

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

IsGreaterThan() public static méthode

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

IsLessThan() public static méthode

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

Round() public static méthode

public static Round ( this date, System.TimeSpan span ) : System.DateTime
date this
span System.TimeSpan
Résultat System.DateTime

ToNearestSecond() public static méthode

public static ToNearestSecond ( this d1 ) : System.DateTime
d1 this
Résultat System.DateTime

TruncateToSecond() public static méthode

public static TruncateToSecond ( this original ) : System.DateTime
original this
Résultat System.DateTime