C# Class Epiworx.Core.DateTimeExtensions

ファイルを表示 Open project: mattruma/epiworx-csla

Public Methods

Method Description
IsLate ( this dateTime ) : bool
IsNextMonth ( this dateTime ) : bool
IsThisMonth ( this dateTime ) : bool
IsThisWeek ( this dateTime ) : bool
IsToday ( this dateTime ) : bool
IsTomorrow ( this dateTime ) : bool
IsYesterday ( this dateTime ) : bool
RoundMinutes ( this dateTime ) : System.DateTime
ToEndOfMonth ( this dateTime ) : DateTime
ToEndOfNextWeek ( this dateTime ) : DateTime
ToEndOfPreviousMonth ( this dateTime ) : DateTime
ToEndOfPreviousWeek ( this dateTime ) : DateTime
ToEndOfPreviousYear ( this dateTime ) : DateTime
ToEndOfWeek ( this dateTime ) : DateTime
ToEndOfWeek ( this dateTime, DayOfWeek dayOfWeek ) : DateTime
ToEndOfYear ( this dateTime ) : DateTime
ToRelativeDate ( this dateTime ) : string
ToStartOfMonth ( this dateTime ) : DateTime
ToStartOfNextWeek ( this dateTime ) : DateTime
ToStartOfPreviousMonth ( this dateTime ) : DateTime
ToStartOfPreviousWeek ( this dateTime ) : DateTime
ToStartOfPreviousYear ( this dateTime ) : DateTime
ToStartOfWeek ( this dateTime ) : DateTime
ToStartOfWeek ( this dateTime, DayOfWeek dayOfWeek ) : DateTime
ToStartOfYear ( this dateTime ) : DateTime

Method Details

IsLate() public static method

public static IsLate ( this dateTime ) : bool
dateTime this
return bool

IsNextMonth() public static method

public static IsNextMonth ( this dateTime ) : bool
dateTime this
return bool

IsThisMonth() public static method

public static IsThisMonth ( this dateTime ) : bool
dateTime this
return bool

IsThisWeek() public static method

public static IsThisWeek ( this dateTime ) : bool
dateTime this
return bool

IsToday() public static method

public static IsToday ( this dateTime ) : bool
dateTime this
return bool

IsTomorrow() public static method

public static IsTomorrow ( this dateTime ) : bool
dateTime this
return bool

IsYesterday() public static method

public static IsYesterday ( this dateTime ) : bool
dateTime this
return bool

RoundMinutes() public static method

public static RoundMinutes ( this dateTime ) : System.DateTime
dateTime this
return System.DateTime

ToEndOfMonth() public static method

public static ToEndOfMonth ( this dateTime ) : DateTime
dateTime this
return DateTime

ToEndOfNextWeek() public static method

public static ToEndOfNextWeek ( this dateTime ) : DateTime
dateTime this
return DateTime

ToEndOfPreviousMonth() public static method

public static ToEndOfPreviousMonth ( this dateTime ) : DateTime
dateTime this
return DateTime

ToEndOfPreviousWeek() public static method

public static ToEndOfPreviousWeek ( this dateTime ) : DateTime
dateTime this
return DateTime

ToEndOfPreviousYear() public static method

public static ToEndOfPreviousYear ( this dateTime ) : DateTime
dateTime this
return DateTime

ToEndOfWeek() public static method

public static ToEndOfWeek ( this dateTime ) : DateTime
dateTime this
return DateTime

ToEndOfWeek() public static method

public static ToEndOfWeek ( this dateTime, DayOfWeek dayOfWeek ) : DateTime
dateTime this
dayOfWeek DayOfWeek
return DateTime

ToEndOfYear() public static method

public static ToEndOfYear ( this dateTime ) : DateTime
dateTime this
return DateTime

ToRelativeDate() public static method

public static ToRelativeDate ( this dateTime ) : string
dateTime this
return string

ToStartOfMonth() public static method

public static ToStartOfMonth ( this dateTime ) : DateTime
dateTime this
return DateTime

ToStartOfNextWeek() public static method

public static ToStartOfNextWeek ( this dateTime ) : DateTime
dateTime this
return DateTime

ToStartOfPreviousMonth() public static method

public static ToStartOfPreviousMonth ( this dateTime ) : DateTime
dateTime this
return DateTime

ToStartOfPreviousWeek() public static method

public static ToStartOfPreviousWeek ( this dateTime ) : DateTime
dateTime this
return DateTime

ToStartOfPreviousYear() public static method

public static ToStartOfPreviousYear ( this dateTime ) : DateTime
dateTime this
return DateTime

ToStartOfWeek() public static method

public static ToStartOfWeek ( this dateTime ) : DateTime
dateTime this
return DateTime

ToStartOfWeek() public static method

public static ToStartOfWeek ( this dateTime, DayOfWeek dayOfWeek ) : DateTime
dateTime this
dayOfWeek DayOfWeek
return DateTime

ToStartOfYear() public static method

public static ToStartOfYear ( this dateTime ) : DateTime
dateTime this
return DateTime