Skip to main content

DateTimeComponents

Calendar components to match when repeating a scheduled notification.

Used by Notifications.schedule. The next matching date can precede the full date supplied in when: matching only the time repeats from the next occurrence of that time.

Note

Calendar recurrence is supported only on Android, iOS, and macOS. Windows ignores these components and schedules a single delivery.

Inherits: enum.Enum

Properties

  • DATE_AND_TIME - Repeats yearly on the month and day and at the time of the scheduled date.
  • DAY_OF_MONTH_AND_TIME - Repeats monthly on the day of the month and at the scheduled time.
  • DAY_OF_WEEK_AND_TIME - Repeats weekly on the weekday and at the time of the scheduled date.
  • TIME - Repeats daily at the hour, minute, and second of the scheduled time.

Properties​

DATE_AND_TIMEclass-attributeinstance-attribute​

Repeats yearly on the month and day and at the time of the scheduled date.

DAY_OF_MONTH_AND_TIMEclass-attributeinstance-attribute​

Repeats monthly on the day of the month and at the scheduled time.

DAY_OF_WEEK_AND_TIMEclass-attributeinstance-attribute​

Repeats weekly on the weekday and at the time of the scheduled date.

TIMEclass-attributeinstance-attribute​

Repeats daily at the hour, minute, and second of the scheduled time.