Options
All
  • Public
  • Public/Protected
  • All
Menu

A class that stores commonly used values.

Hierarchy

  • Constants

Index

Properties

Static DAYS_IN_WEEK

DAYS_IN_WEEK: number = 7

The number of days in a week.

Static DAYS_IN_YEAR

DAYS_IN_YEAR: number = 366

The maximum possible number of days in a year.

Static DAY_MAX

DAY_MAX: number = 31

The last day of the longest month.

Static DAY_MIN

DAY_MIN: number = 1

The first day of a month.

Static DURATION_DEFAULT

DURATION_DEFAULT: number = 1

The default duration for an event.

Static DURATION_DEFAULT_UNIT_ALL

DURATION_DEFAULT_UNIT_ALL: Unit = "day"

The default duration unit for an all day event.

Static DURATION_DEFAULT_UNIT_TIMES

DURATION_DEFAULT_UNIT_TIMES: Unit = "hour"

The default duration unit for an event at a given time.

Static HOURS_IN_DAY

HOURS_IN_DAY: number = 24

The number of hours in a day (not including DST days).

Static HOUR_MAX

HOUR_MAX: number = 23

The last hour of the day.

Static HOUR_MIN

HOUR_MIN: number = 0

The first hour of the day.

Static MAX_EVENTS_PER_DAY

MAX_EVENTS_PER_DAY: number = 24

The maximum estimated number of events per day. This is used to calculate CalendarEvent.id to give each event a unique ID. If you think you will have more events than this per day, you can enlarge the value.

Static MILLIS_IN_DAY

MILLIS_IN_DAY: number = Constants.MILLIS_IN_HOUR * Constants.HOURS_IN_DAY

The number of milliseconds in a day (not including DST days).

Static MILLIS_IN_HOUR

MILLIS_IN_HOUR: number = Constants.MILLIS_IN_MINUTE * Constants.SECONDS_IN_MINUTE

The number of milliseconds in an hour.

Static MILLIS_IN_MINUTE

MILLIS_IN_MINUTE: number = Constants.MILLIS_IN_SECOND * Constants.SECONDS_IN_MINUTE

The number of milliseconds in a minute.

Static MILLIS_IN_SECOND

MILLIS_IN_SECOND: number = 1000

The number of milliseconds in a second.

Static MILLIS_IN_WEEK

MILLIS_IN_WEEK: number = Constants.MILLIS_IN_DAY * Constants.DAYS_IN_WEEK

The number of milliseconds in a week (not including ones that include DST).

Static MILLIS_MAX

MILLIS_MAX: number = 999

The last millisecond of the second.

Static MILLIS_MIN

MILLIS_MIN: number = 0

The first millisecond of the second.

Static MINUTES_IN_DAY

MINUTES_IN_DAY: number = Constants.MINUTES_IN_HOUR * Constants.HOURS_IN_DAY

The number of minutes in a day (not including DST days).

Static MINUTES_IN_HOUR

MINUTES_IN_HOUR: 60 = 60

The number of minutes in an hour.

Static MINUTE_MAX

MINUTE_MAX: number = 59

The last minute of the hour.

Static MINUTE_MIN

MINUTE_MIN: number = 0

The first minute of the hour.

Static MONTHS_IN_QUARTER

MONTHS_IN_QUARTER: 3 = 3

The number of months in a quarter.

Static MONTHS_IN_YEAR

MONTHS_IN_YEAR: number = 12

The number of months in a year.

Static MONTH_MAX

MONTH_MAX: number = 11

The last month of the year.

Static MONTH_MIN

MONTH_MIN: number = 0

The first month of the year.

Static SECONDS_IN_MINUTE

SECONDS_IN_MINUTE: number = 60

The number of seconds in a minute.

Static SECOND_MAX

SECOND_MAX: number = 59

The last second of the minute.

Static SECOND_MIN

SECOND_MIN: number = 0

The first second of the minute.

Static WEEKDAY_MAX

WEEKDAY_MAX: number = 6

The last day of the week.

Static WEEKDAY_MIN

WEEKDAY_MIN: number = 0

The first day of the week.

Methods

Static DURATION_DEFAULT_UNIT

  • DURATION_DEFAULT_UNIT(all: boolean): "millis" | "minute" | "hour" | "month" | "year" | "day" | "quarter" | "week" | "second"
  • Computes the duration unit given its for an all day event.

    Parameters

    • all: boolean

      If the event is all day.

    Returns "millis" | "minute" | "hour" | "month" | "year" | "day" | "quarter" | "week" | "second"

    The default unit for the event.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc