C# Class Itenso.TimePeriod.TimeCalendar

Inheritance: ITimeCalendar
Show file Open project: jwg4/date-difference Class Usage Examples

Public Properties

Property Type Description
DefaultEndOffset System.TimeSpan
DefaultStartOffset System.TimeSpan

Public Methods

Method Description
Equals ( object obj ) : bool
GetDayName ( DayOfWeek dayOfWeek ) : string
GetDayOfMonth ( System.DateTime time ) : int
GetDayOfWeek ( System.DateTime time ) : DayOfWeek
GetDaysInMonth ( int year, int month ) : int
GetHalfyearName ( YearHalfyear yearHalfyear ) : string
GetHalfyearOfYearName ( int year, YearHalfyear yearHalfyear ) : string
GetHashCode ( ) : int
GetHour ( System.DateTime time ) : int
GetMinute ( System.DateTime time ) : int
GetMonth ( System.DateTime time ) : int
GetMonthName ( int month ) : string
GetMonthOfYearName ( int year, int month ) : string
GetQuarterName ( YearQuarter yearQuarter ) : string
GetQuarterOfYearName ( int year, YearQuarter yearQuarter ) : string
GetStartOfYearWeek ( int year, int weekOfYear ) : System.DateTime
GetWeekOfYear ( System.DateTime time ) : int
GetWeekOfYearName ( int year, int weekOfYear ) : string
GetYear ( System.DateTime time ) : int
GetYearName ( int year ) : string
MapEnd ( System.DateTime moment ) : System.DateTime
MapStart ( System.DateTime moment ) : System.DateTime
New ( CultureInfo culture ) : TimeCalendar
New ( CultureInfo culture, System.TimeSpan startOffset, System.TimeSpan endOffset ) : TimeCalendar
New ( CultureInfo culture, YearMonth yearBaseMonth, YearWeekType yearWeekType ) : TimeCalendar
New ( System.TimeSpan startOffset, System.TimeSpan endOffset ) : TimeCalendar
New ( System.TimeSpan startOffset, System.TimeSpan endOffset, YearMonth yearBaseMonth ) : TimeCalendar
New ( YearMonth yearBaseMonth ) : TimeCalendar
NewEmptyOffset ( ) : TimeCalendar
TimeCalendar ( ) : System
TimeCalendar ( TimeCalendarConfig config ) : System
UnmapEnd ( System.DateTime moment ) : System.DateTime
UnmapStart ( System.DateTime moment ) : System.DateTime

Protected Methods

Method Description
ComputeHashCode ( ) : int
IsEqual ( object obj ) : bool

Private Methods

Method Description
HasSameData ( TimeCalendar comp ) : bool

Method Details

ComputeHashCode() protected method

protected ComputeHashCode ( ) : int
return int

Equals() public final method

public final Equals ( object obj ) : bool
obj object
return bool

GetDayName() public method

public GetDayName ( DayOfWeek dayOfWeek ) : string
dayOfWeek DayOfWeek
return string

GetDayOfMonth() public method

public GetDayOfMonth ( System.DateTime time ) : int
time System.DateTime
return int

GetDayOfWeek() public method

public GetDayOfWeek ( System.DateTime time ) : DayOfWeek
time System.DateTime
return DayOfWeek

GetDaysInMonth() public method

public GetDaysInMonth ( int year, int month ) : int
year int
month int
return int

GetHalfyearName() public method

public GetHalfyearName ( YearHalfyear yearHalfyear ) : string
yearHalfyear YearHalfyear
return string

GetHalfyearOfYearName() public method

public GetHalfyearOfYearName ( int year, YearHalfyear yearHalfyear ) : string
year int
yearHalfyear YearHalfyear
return string

GetHashCode() public final method

public final GetHashCode ( ) : int
return int

GetHour() public method

public GetHour ( System.DateTime time ) : int
time System.DateTime
return int

GetMinute() public method

public GetMinute ( System.DateTime time ) : int
time System.DateTime
return int

GetMonth() public method

public GetMonth ( System.DateTime time ) : int
time System.DateTime
return int

GetMonthName() public method

public GetMonthName ( int month ) : string
month int
return string

GetMonthOfYearName() public method

public GetMonthOfYearName ( int year, int month ) : string
year int
month int
return string

GetQuarterName() public method

public GetQuarterName ( YearQuarter yearQuarter ) : string
yearQuarter YearQuarter
return string

GetQuarterOfYearName() public method

public GetQuarterOfYearName ( int year, YearQuarter yearQuarter ) : string
year int
yearQuarter YearQuarter
return string

GetStartOfYearWeek() public method

public GetStartOfYearWeek ( int year, int weekOfYear ) : System.DateTime
year int
weekOfYear int
return System.DateTime

GetWeekOfYear() public method

public GetWeekOfYear ( System.DateTime time ) : int
time System.DateTime
return int

GetWeekOfYearName() public method

public GetWeekOfYearName ( int year, int weekOfYear ) : string
year int
weekOfYear int
return string

GetYear() public method

public GetYear ( System.DateTime time ) : int
time System.DateTime
return int

GetYearName() public method

public GetYearName ( int year ) : string
year int
return string

IsEqual() protected method

protected IsEqual ( object obj ) : bool
obj object
return bool

MapEnd() public method

public MapEnd ( System.DateTime moment ) : System.DateTime
moment System.DateTime
return System.DateTime

MapStart() public method

public MapStart ( System.DateTime moment ) : System.DateTime
moment System.DateTime
return System.DateTime

New() public static method

public static New ( CultureInfo culture ) : TimeCalendar
culture System.Globalization.CultureInfo
return TimeCalendar

New() public static method

public static New ( CultureInfo culture, System.TimeSpan startOffset, System.TimeSpan endOffset ) : TimeCalendar
culture System.Globalization.CultureInfo
startOffset System.TimeSpan
endOffset System.TimeSpan
return TimeCalendar

New() public static method

public static New ( CultureInfo culture, YearMonth yearBaseMonth, YearWeekType yearWeekType ) : TimeCalendar
culture System.Globalization.CultureInfo
yearBaseMonth YearMonth
yearWeekType YearWeekType
return TimeCalendar

New() public static method

public static New ( System.TimeSpan startOffset, System.TimeSpan endOffset ) : TimeCalendar
startOffset System.TimeSpan
endOffset System.TimeSpan
return TimeCalendar

New() public static method

public static New ( System.TimeSpan startOffset, System.TimeSpan endOffset, YearMonth yearBaseMonth ) : TimeCalendar
startOffset System.TimeSpan
endOffset System.TimeSpan
yearBaseMonth YearMonth
return TimeCalendar

New() public static method

public static New ( YearMonth yearBaseMonth ) : TimeCalendar
yearBaseMonth YearMonth
return TimeCalendar

NewEmptyOffset() public static method

public static NewEmptyOffset ( ) : TimeCalendar
return TimeCalendar

TimeCalendar() public method

public TimeCalendar ( ) : System
return System

TimeCalendar() public method

public TimeCalendar ( TimeCalendarConfig config ) : System
config TimeCalendarConfig
return System

UnmapEnd() public method

public UnmapEnd ( System.DateTime moment ) : System.DateTime
moment System.DateTime
return System.DateTime

UnmapStart() public method

public UnmapStart ( System.DateTime moment ) : System.DateTime
moment System.DateTime
return System.DateTime

Property Details

DefaultEndOffset public static property

public static TimeSpan,System DefaultEndOffset
return System.TimeSpan

DefaultStartOffset public static property

public static TimeSpan,System DefaultStartOffset
return System.TimeSpan