C# Class Itenso.TimePeriod.DateDiff

Afficher le fichier Open project: jwg4/date-difference Class Usage Examples

Private Properties

Свойство Type Description
CalcMonths int
CalcQuarters int
CalcWeeks int
CalcYears int
Round double

Méthodes publiques

Méthode 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

Méthode Description
CalcMonths ( ) : int
CalcQuarters ( ) : int
CalcWeeks ( ) : int
CalcYears ( ) : int
Round ( double number ) : double

Method Details

DateDiff() public méthode

public DateDiff ( System.DateTime date ) : System
date System.DateTime
Résultat System

DateDiff() public méthode

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
Résultat System

DateDiff() public méthode

public DateDiff ( System.DateTime date1, System.DateTime date2 ) : System
date1 System.DateTime
date2 System.DateTime
Résultat System

DateDiff() public méthode

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
Résultat System

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetDescription() public méthode

public GetDescription ( int precision = int.MaxValue, ITimeFormatter formatter = null ) : string
precision int
formatter ITimeFormatter
Résultat string

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

ToString() public méthode

public ToString ( ) : string
Résultat string