C# Class Quartz.Impl.Calendar.HolidayCalendar

Inheritance: Quartz.Impl.Calendar.BaseCalendar, ICalendar
Afficher le fichier Open project: quartznet/quartznet Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
HolidayCalendar ( SerializationInfo info, StreamingContext context ) : System

Serialization constructor.

Private Methods

Méthode Description
GetObjectData ( SerializationInfo info, StreamingContext context ) : void

Method Details

AddExcludedDate() public méthode

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

Clone() public méthode

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

Equals() public méthode

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

Equals() public méthode

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

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetNextIncludedTimeUtc() public méthode

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

HolidayCalendar() public méthode

Initializes a new instance of the HolidayCalendar class.
public HolidayCalendar ( ) : System
Résultat System

HolidayCalendar() public méthode

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

HolidayCalendar() protected méthode

Serialization constructor.
protected HolidayCalendar ( SerializationInfo info, StreamingContext context ) : System
info SerializationInfo
context StreamingContext
Résultat System

IsTimeIncluded() public méthode

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

RemoveExcludedDate() public méthode

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