C# Class Itenso.TimePeriod.TimeCompare

Mostra file Open project: jwg4/date-difference Class Usage Examples

Public Methods

Method Description
IsSameDay ( System.DateTime left, System.DateTime right ) : bool
IsSameHalfyear ( System.DateTime left, System.DateTime right ) : bool
IsSameHalfyear ( YearMonth yearStartMonth, System.DateTime left, System.DateTime right ) : bool
IsSameHour ( System.DateTime left, System.DateTime right ) : bool
IsSameMinute ( System.DateTime left, System.DateTime right ) : bool
IsSameMonth ( System.DateTime left, System.DateTime right ) : bool
IsSameQuarter ( System.DateTime left, System.DateTime right ) : bool
IsSameQuarter ( YearMonth yearStartMonth, System.DateTime left, System.DateTime right ) : bool
IsSameSecond ( System.DateTime left, System.DateTime right ) : bool
IsSameWeek ( System.DateTime left, System.DateTime right, CultureInfo culture, CalendarWeekRule weekRule, DayOfWeek firstDayOfWeek, YearWeekType weekType ) : bool
IsSameWeek ( System.DateTime left, System.DateTime right, CultureInfo culture, YearWeekType weekType ) : bool
IsSameYear ( System.DateTime left, System.DateTime right ) : bool
IsSameYear ( YearMonth yearStartMonth, System.DateTime left, System.DateTime right ) : bool

Method Details

IsSameDay() public static method

public static IsSameDay ( System.DateTime left, System.DateTime right ) : bool
left System.DateTime
right System.DateTime
return bool

IsSameHalfyear() public static method

public static IsSameHalfyear ( System.DateTime left, System.DateTime right ) : bool
left System.DateTime
right System.DateTime
return bool

IsSameHalfyear() public static method

public static IsSameHalfyear ( YearMonth yearStartMonth, System.DateTime left, System.DateTime right ) : bool
yearStartMonth YearMonth
left System.DateTime
right System.DateTime
return bool

IsSameHour() public static method

public static IsSameHour ( System.DateTime left, System.DateTime right ) : bool
left System.DateTime
right System.DateTime
return bool

IsSameMinute() public static method

public static IsSameMinute ( System.DateTime left, System.DateTime right ) : bool
left System.DateTime
right System.DateTime
return bool

IsSameMonth() public static method

public static IsSameMonth ( System.DateTime left, System.DateTime right ) : bool
left System.DateTime
right System.DateTime
return bool

IsSameQuarter() public static method

public static IsSameQuarter ( System.DateTime left, System.DateTime right ) : bool
left System.DateTime
right System.DateTime
return bool

IsSameQuarter() public static method

public static IsSameQuarter ( YearMonth yearStartMonth, System.DateTime left, System.DateTime right ) : bool
yearStartMonth YearMonth
left System.DateTime
right System.DateTime
return bool

IsSameSecond() public static method

public static IsSameSecond ( System.DateTime left, System.DateTime right ) : bool
left System.DateTime
right System.DateTime
return bool

IsSameWeek() public static method

public static IsSameWeek ( System.DateTime left, System.DateTime right, CultureInfo culture, CalendarWeekRule weekRule, DayOfWeek firstDayOfWeek, YearWeekType weekType ) : bool
left System.DateTime
right System.DateTime
culture System.Globalization.CultureInfo
weekRule CalendarWeekRule
firstDayOfWeek DayOfWeek
weekType YearWeekType
return bool

IsSameWeek() public static method

public static IsSameWeek ( System.DateTime left, System.DateTime right, CultureInfo culture, YearWeekType weekType ) : bool
left System.DateTime
right System.DateTime
culture System.Globalization.CultureInfo
weekType YearWeekType
return bool

IsSameYear() public static method

public static IsSameYear ( System.DateTime left, System.DateTime right ) : bool
left System.DateTime
right System.DateTime
return bool

IsSameYear() public static method

public static IsSameYear ( YearMonth yearStartMonth, System.DateTime left, System.DateTime right ) : bool
yearStartMonth YearMonth
left System.DateTime
right System.DateTime
return bool