C# Class NDueTime.DateTimeExtensions

Afficher le fichier Open project: kevingorski/NDueTime

Méthodes publiques

Méthode Description
FindDayInTheSameWeek ( this subject, DayOfWeek dayOfWeek ) : System.DateTime
IsBetween ( this subject, System.DateTime first, System.DateTime second ) : bool
IsInTheFuture ( this subject ) : bool
IsInThePast ( this subject ) : bool
ToRelativeTimeString ( this subject ) : string

Method Details

FindDayInTheSameWeek() public static méthode

public static FindDayInTheSameWeek ( this subject, DayOfWeek dayOfWeek ) : System.DateTime
subject this
dayOfWeek DayOfWeek
Résultat System.DateTime

IsBetween() public static méthode

public static IsBetween ( this subject, System.DateTime first, System.DateTime second ) : bool
subject this
first System.DateTime
second System.DateTime
Résultat bool

IsInTheFuture() public static méthode

public static IsInTheFuture ( this subject ) : bool
subject this
Résultat bool

IsInThePast() public static méthode

public static IsInThePast ( this subject ) : bool
subject this
Résultat bool

ToRelativeTimeString() public static méthode

public static ToRelativeTimeString ( this subject ) : string
subject this
Résultat string