C# Class Expl.Itinerary.CronSchedule

Inheritance: IPrimitiveSchedule
Show file Open project: spoulson/Itinerary Class Usage Examples

Public Methods

Method Description
CronSchedule ( ) : System

Default constructor.

CronSchedule ( string MinuteSpec, string HourSpec, string DaySpec, string MonthSpec, string DayOfWeekSpec, System.TimeSpan Duration ) : System

Constructor for cron specification of event intervals.

GetHashCode ( ) : int
GetRange ( System.DateTime RangeStart, System.DateTime RangeEnd ) : IEnumerable
ToString ( ) : string

Private Methods

Method Description
ComputeLastDOWOccurance ( int Year, int Month, int DOW ) : int

Compute last occurance index of a day of week in a month.

XlatDOW ( string value ) : string

Translation function for day of week tokens.

Method Details

CronSchedule() public method

Default constructor.
public CronSchedule ( ) : System
return System

CronSchedule() public method

Constructor for cron specification of event intervals.
public CronSchedule ( string MinuteSpec, string HourSpec, string DaySpec, string MonthSpec, string DayOfWeekSpec, System.TimeSpan Duration ) : System
MinuteSpec string Minute spec.
HourSpec string Hour spec.
DaySpec string Day spec.
MonthSpec string Month spec.
DayOfWeekSpec string Day of week spec.
Duration System.TimeSpan Duration of event.
return System

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetRange() public method

public GetRange ( System.DateTime RangeStart, System.DateTime RangeEnd ) : IEnumerable
RangeStart System.DateTime
RangeEnd System.DateTime
return IEnumerable

ToString() public method

public ToString ( ) : string
return string