Constructors
constructor
- new Expression(params?: undefined | { dayOfTheMonth?: undefined | string; dayOfTheWeek?: undefined | string; hour?: undefined | string; minute?: undefined | string; month?: undefined | string }): Expression
-
Parameters
-
Optional params: undefined | { dayOfTheMonth?: undefined | string; dayOfTheWeek?: undefined | string; hour?: undefined | string; minute?: undefined | string; month?: undefined | string }
Properties
Private dayOfTheMonth
dayOfTheMonth: string
Private dayOfTheWeek
dayOfTheWeek: string
Private hour
hour: string
Private minute
minute: string
Private month
month: string
Methods
getDayOfTheMonth
- getDayOfTheMonth(): string
getDayOfTheWeek
- getDayOfTheWeek(): string
setDayOfTheMonth
- setDayOfTheMonth(dayOfTheMonth: string): void
setDayOfTheWeek
- setDayOfTheWeek(dayOfTheWeek: string): void
setHour
- setHour(hour: string): void
setMinute
- setMinute(minute: string): void
setMonth
- setMonth(month: string): void
Create an expression with default values. Every value defaults to
*
.const expression = new Expression({hour: '1'}); // * 1 * * *