C# Class Itenso.TimePeriod.DateDiff

Datei anzeigen Open project: jwg4/date-difference Class Usage Examples

Private Properties

Property Type Description
CalcMonths int
CalcQuarters int
CalcWeeks int
CalcYears int
Round double

Public Methods

Method Description
DateDiff ( System.DateTime date ) : System
DateDiff ( System.DateTime date, Calendar calendar, DayOfWeek firstDayOfWeek, YearMonth yearBaseMonth = TimeSpec.CalendarYearStartMonth ) : System
DateDiff ( System.DateTime date1, System.DateTime date2 ) : System
DateDiff ( System.DateTime date1, System.DateTime date2, Calendar calendar, DayOfWeek firstDayOfWeek, YearMonth yearBaseMonth = TimeSpec.CalendarYearStartMonth ) : System
Equals ( object obj ) : bool
GetDescription ( int precision = int.MaxValue, ITimeFormatter formatter = null ) : string
GetHashCode ( ) : int
ToString ( ) : string

Private Methods

Method Description
CalcMonths ( ) : int
CalcQuarters ( ) : int
CalcWeeks ( ) : int
CalcYears ( ) : int
Round ( double number ) : double

Method Details

DateDiff() public method

public DateDiff ( System.DateTime date ) : System
date System.DateTime
return System

DateDiff() public method

public DateDiff ( System.DateTime date, Calendar calendar, DayOfWeek firstDayOfWeek, YearMonth yearBaseMonth = TimeSpec.CalendarYearStartMonth ) : System
date System.DateTime
calendar System.Globalization.Calendar
firstDayOfWeek DayOfWeek
yearBaseMonth YearMonth
return System

DateDiff() public method

public DateDiff ( System.DateTime date1, System.DateTime date2 ) : System
date1 System.DateTime
date2 System.DateTime
return System

DateDiff() public method

public DateDiff ( System.DateTime date1, System.DateTime date2, Calendar calendar, DayOfWeek firstDayOfWeek, YearMonth yearBaseMonth = TimeSpec.CalendarYearStartMonth ) : System
date1 System.DateTime
date2 System.DateTime
calendar System.Globalization.Calendar
firstDayOfWeek DayOfWeek
yearBaseMonth YearMonth
return System

Equals() public method

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

GetDescription() public method

public GetDescription ( int precision = int.MaxValue, ITimeFormatter formatter = null ) : string
precision int
formatter ITimeFormatter
return string

GetHashCode() public method

public GetHashCode ( ) : int
return int

ToString() public method

public ToString ( ) : string
return string