C# Class JFLibrary.DateSpan

Show file Open project: joelfillmore/JFLibrary

Public Methods

Method Description
DateSpan ( System.DateTime startDate, System.DateTime endDate ) : System
ToShortString ( ) : string

Prints portions of the DateSpan that contribute at least 25% of the total duration

ToString ( ) : string

Prints all non-zero portions including years, months, and days

Private Methods

Method Description
PrintDays ( StringBuilder sb ) : void
PrintMonths ( StringBuilder sb ) : void
PrintYears ( StringBuilder sb ) : void

Method Details

DateSpan() public method

public DateSpan ( System.DateTime startDate, System.DateTime endDate ) : System
startDate System.DateTime
endDate System.DateTime
return System

ToShortString() public method

Prints portions of the DateSpan that contribute at least 25% of the total duration
public ToShortString ( ) : string
return string

ToString() public method

Prints all non-zero portions including years, months, and days
public ToString ( ) : string
return string