Returns daylight savings end time.
Sets daylight savings end time.
Returns daylight savings start time.
Sets daylight savings start time.
Adds one day to the current CronDate.
Adds one hour to the current CronDate.
Adds one minute to the current CronDate.
Adds one month to the current CronDate.
Adds one second to the current CronDate.
Adds a unit of time to the current CronDate.
Adds one year to the current CronDate.
Primarily for internal use.
The operation to perform.
The unit of time to use.
Optional
hoursLength: numberThe length of the hours. Required when unit is not month or day.
Returns the day.
Returns the day of the week.
Returns the year.
Returns the hour.
Returns the milliseconds.
Returns the minutes.
Returns the month.
Returns the seconds.
Returns the time.
Returns the UTC day.
Returns the UTC day of the week.
Returns the UTC year.
Returns the UTC hour.
Returns the UTC minutes.
Returns the UTC month.
Returns the UTC seconds.
Handles a math operation.
{'add' | 'subtract'}
{'year' | 'month' | 'day' | 'hour' | 'minute' | 'second'}
Returns true if the day is the last day of the month.
Returns true if the day is the last weekday of the month.
Sets the day.
Sets the day of the week.
Sets the year.
Sets the hour.
Sets the milliseconds.
Sets the minutes.
Sets the month.
Sets the seconds.
Subtracts one day from the current CronDate. If the day is 1, it will subtract one month instead.
Subtracts one hour from the current CronDate. If the hour is 0, it will subtract one day instead.
Subtracts one minute from the current CronDate. If the minute is 0, it will subtract one hour instead.
Subtracts one month from the current CronDate. If the month is 1, it will subtract one year instead.
Subtracts one second from the current CronDate. If the second is 0, it will subtract one minute instead.
Subtracts a unit of time from the current CronDate.
Subtracts one year from the current CronDate.
Returns the date as a Date object.
Returns the UTC milliseconds.
Returns the date as a JSON string.
Returns the date as a string.
CronDate class that wraps the Luxon DateTime object to provide a consistent API for working with dates and times in the context of cron.