C# Class NDueTime.DateTimeExtensions

Mostra file Open project: kevingorski/NDueTime

Public Methods

Method 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 method

public static FindDayInTheSameWeek ( this subject, DayOfWeek dayOfWeek ) : System.DateTime
subject this
dayOfWeek DayOfWeek
return System.DateTime

IsBetween() public static method

public static IsBetween ( this subject, System.DateTime first, System.DateTime second ) : bool
subject this
first System.DateTime
second System.DateTime
return bool

IsInTheFuture() public static method

public static IsInTheFuture ( this subject ) : bool
subject this
return bool

IsInThePast() public static method

public static IsInThePast ( this subject ) : bool
subject this
return bool

ToRelativeTimeString() public static method

public static ToRelativeTimeString ( this subject ) : string
subject this
return string