Class Calendar

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(languages: IIterable): Calendar

Parameters

Returns

Calendar

constructor(languages: IIterable, calendar: string, clock: string): Calendar

Parameters

  • languages: IIterable
  • calendar: string
  • clock: string

Returns

Calendar

constructor(): Calendar

Returns

Calendar

Properties

public day: number

public dayOfWeek: DayOfWeek

public era: number

public firstDayInThisMonth: number

public firstEra: number

public firstHourInThisPeriod: number

public firstMinuteInThisHour: number

public firstMonthInThisYear: number

public firstPeriodInThisDay: number

public firstSecondInThisMinute: number

public firstYearInThisEra: number

public hour: number

public isDaylightSavingTime: boolean

public languages: IVectorView

public lastDayInThisMonth: number

public lastEra: number

public lastHourInThisPeriod: number

public lastMinuteInThisHour: number

public lastMonthInThisYear: number

public lastPeriodInThisDay: number

public lastSecondInThisMinute: number

public lastYearInThisEra: number

public minute: number

public month: number

public nanosecond: number

public numberOfDaysInThisMonth: number

public numberOfEras: number

public numberOfHoursInThisPeriod: number

public numberOfMinutesInThisHour: number

public numberOfMonthsInThisYear: number

public numberOfPeriodsInThisDay: number

public numberOfSecondsInThisMinute: number

public numberOfYearsInThisEra: number

public numeralSystem: string

public period: number

public resolvedLanguage: string

public second: number

public year: number

Methods

public addDays(days: number)

Parameters

  • days: number

public addEras(eras: number)

Parameters

  • eras: number

public addHours(hours: number)

Parameters

  • hours: number

public addMinutes(minutes: number)

Parameters

  • minutes: number

public addMonths(months: number)

Parameters

  • months: number

public addNanoseconds(nanoseconds: number)

Parameters

  • nanoseconds: number

public addPeriods(periods: number)

Parameters

  • periods: number

public addSeconds(seconds: number)

Parameters

  • seconds: number

public addWeeks(weeks: number)

Parameters

  • weeks: number

public addYears(years: number)

Parameters

  • years: number

public changeCalendarSystem(value: string)

Parameters

  • value: string

public changeClock(value: string)

Parameters

  • value: string

public clone(): Calendar

Returns

Calendar

public compare(other: Calendar): number

Parameters

Returns

number

public compareDateTime(other: Date): number

Parameters

  • other: Date

Returns

number

public copyTo(other: Calendar)

Parameters

public dayAsPaddedString(minDigits: number): string

Parameters

  • minDigits: number

Returns

string

public dayAsString(): string

Returns

string

public dayOfWeekAsSoloString(): string

Returns

string

public dayOfWeekAsSoloString(idealLength: number): string

Parameters

  • idealLength: number

Returns

string

public dayOfWeekAsString(): string

Returns

string

public dayOfWeekAsString(idealLength: number): string

Parameters

  • idealLength: number

Returns

string

public eraAsString(): string

Returns

string

public eraAsString(idealLength: number): string

Parameters

  • idealLength: number

Returns

string

public getCalendarSystem(): string

Returns

string

public getClock(): string

Returns

string

public getDateTime(): Date

Returns

Date

public hourAsPaddedString(minDigits: number): string

Parameters

  • minDigits: number

Returns

string

public hourAsString(): string

Returns

string

public minuteAsPaddedString(minDigits: number): string

Parameters

  • minDigits: number

Returns

string

public minuteAsString(): string

Returns

string

public monthAsNumericString(): string

Returns

string

public monthAsPaddedNumericString(minDigits: number): string

Parameters

  • minDigits: number

Returns

string

public monthAsSoloString(): string

Returns

string

public monthAsSoloString(idealLength: number): string

Parameters

  • idealLength: number

Returns

string

public monthAsString(): string

Returns

string

public monthAsString(idealLength: number): string

Parameters

  • idealLength: number

Returns

string

public nanosecondAsPaddedString(minDigits: number): string

Parameters

  • minDigits: number

Returns

string

public nanosecondAsString(): string

Returns

string

public periodAsString(): string

Returns

string

public periodAsString(idealLength: number): string

Parameters

  • idealLength: number

Returns

string

public secondAsPaddedString(minDigits: number): string

Parameters

  • minDigits: number

Returns

string

public secondAsString(): string

Returns

string

public setDateTime(value: Date)

Parameters

  • value: Date

public setToMax()

public setToMin()

public setToNow()

public yearAsPaddedString(minDigits: number): string

Parameters

  • minDigits: number

Returns

string

public yearAsString(): string

Returns

string

public yearAsTruncatedString(remainingDigits: number): string

Parameters

  • remainingDigits: number

Returns

string