Calendar Class

Implements a business days calendar and date calculator.

Definition

Namespace: Austra.Library.Dates
Assembly: Austra.Library (in Austra.Library.dll) Version: 2.5.0+44e7797405725ef3cf24b3ff0eba94ce6c649601
C#
public sealed class Calendar
Inheritance
Object    Calendar

Constructors

Calendar(Date)Creates a neutral calendar.
Calendar(Calendar, Calendar)Creates a new calendar by merging two existing ones.
Calendar(String, Date, ICollectionDate)Initializes a business days calendar.

Properties

ItemRolls a date given a business day convention.
NameGets the name of the calendar.
TodayGets the base or current date of the calendar.
TomorrowGets the good business day after today.
TomorrowNextGets the good business day after tomorrow.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTimeGridCreates a time grid for future calculations.
GetTypeGets the Type of the current instance.
(Inherited from Object)
IsHolidayIs the given date a good business day or not?
RollRolls a date up or down a number of working days.
RollFollowingRolls a date up to the next business day.
RollModifiedFollowingRolls a date up using the Modified Following convention.
RollModifiedPreviousRolls a date up using the Modified Previous convention.
RollPreviousRolls a date down to the previous business day.
ToStringGets a text representation of the calendar.
(Overrides ObjectToString)

Operators

Addition(Calendar, Calendar)Combines two calendars.

See Also