C# Класс Quartz.Impl.Calendar.HolidayCalendar

Наследование: Quartz.Impl.Calendar.BaseCalendar, ICalendar
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
HolidayCalendar ( SerializationInfo info, StreamingContext context ) : System

Serialization constructor.

Приватные методы

Метод Описание
GetObjectData ( SerializationInfo info, StreamingContext context ) : void

Описание методов

AddExcludedDate() публичный Метод

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
Результат void

Clone() публичный Метод

Creates a new object that is a copy of the current instance.
public Clone ( ) : ICalendar
Результат ICalendar

Equals() публичный Метод

public Equals ( HolidayCalendar obj ) : bool
obj HolidayCalendar
Результат bool

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

GetNextIncludedTimeUtc() публичный Метод

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
Результат DateTimeOffset

HolidayCalendar() публичный Метод

Initializes a new instance of the HolidayCalendar class.
public HolidayCalendar ( ) : System
Результат System

HolidayCalendar() публичный Метод

Initializes a new instance of the HolidayCalendar class.
public HolidayCalendar ( ICalendar baseCalendar ) : System
baseCalendar ICalendar The base calendar.
Результат System

HolidayCalendar() защищенный Метод

Serialization constructor.
protected HolidayCalendar ( SerializationInfo info, StreamingContext context ) : System
info SerializationInfo
context StreamingContext
Результат System

IsTimeIncluded() публичный Метод

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
Результат bool

RemoveExcludedDate() публичный Метод

Removes the excluded date.
public RemoveExcludedDate ( System.DateTime dateToRemoveUtc ) : void
dateToRemoveUtc System.DateTime The date to remove.
Результат void