C# Class Quartz.Impl.Calendar.HolidayCalendar

Inheritance: Quartz.Impl.Calendar.BaseCalendar, ICalendar
Datei anzeigen Open project: quartznet/quartznet Class Usage Examples

Public Methods

Method Description
AddExcludedDate ( System.DateTime excludedDateUtc ) : void

Add the given Date to the list of excluded days. Only the month, day and year of the returned dates are significant.

Clone ( ) : ICalendar

Creates a new object that is a copy of the current instance.

Equals ( HolidayCalendar obj ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
GetNextIncludedTimeUtc ( DateTimeOffset timeUtc ) : DateTimeOffset

Determine the next time (in milliseconds) that is 'included' by the Calendar after the given time.

Note that this Calendar is only has full-day precision.

HolidayCalendar ( ) : System

Initializes a new instance of the HolidayCalendar class.

HolidayCalendar ( ICalendar baseCalendar ) : System

Initializes a new instance of the HolidayCalendar class.

IsTimeIncluded ( DateTimeOffset timeStampUtc ) : bool

Determine whether the given time (in milliseconds) is 'included' by the Calendar.

Note that this Calendar is only has full-day precision.

RemoveExcludedDate ( System.DateTime dateToRemoveUtc ) : void

Removes the excluded date.

Protected Methods

Method Description
HolidayCalendar ( SerializationInfo info, StreamingContext context ) : System

Serialization constructor.

Private Methods

Method Description
GetObjectData ( SerializationInfo info, StreamingContext context ) : void

Method Details

AddExcludedDate() public method

Add the given Date to the list of excluded days. Only the month, day and year of the returned dates are significant.
public AddExcludedDate ( System.DateTime excludedDateUtc ) : void
excludedDateUtc System.DateTime
return void

Clone() public method

Creates a new object that is a copy of the current instance.
public Clone ( ) : ICalendar
return ICalendar

Equals() public method

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

Equals() public method

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

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetNextIncludedTimeUtc() public method

Determine the next time (in milliseconds) that is 'included' by the Calendar after the given time.

Note that this Calendar is only has full-day precision.

public GetNextIncludedTimeUtc ( DateTimeOffset timeUtc ) : DateTimeOffset
timeUtc DateTimeOffset
return DateTimeOffset

HolidayCalendar() public method

Initializes a new instance of the HolidayCalendar class.
public HolidayCalendar ( ) : System
return System

HolidayCalendar() public method

Initializes a new instance of the HolidayCalendar class.
public HolidayCalendar ( ICalendar baseCalendar ) : System
baseCalendar ICalendar The base calendar.
return System

HolidayCalendar() protected method

Serialization constructor.
protected HolidayCalendar ( SerializationInfo info, StreamingContext context ) : System
info SerializationInfo
context StreamingContext
return System

IsTimeIncluded() public method

Determine whether the given time (in milliseconds) is 'included' by the Calendar.

Note that this Calendar is only has full-day precision.

public IsTimeIncluded ( DateTimeOffset timeStampUtc ) : bool
timeStampUtc DateTimeOffset
return bool

RemoveExcludedDate() public method

Removes the excluded date.
public RemoveExcludedDate ( System.DateTime dateToRemoveUtc ) : void
dateToRemoveUtc System.DateTime The date to remove.
return void