woltlab-compiler
Version:
A compiler for WoltLab-Package Archives and WoltLab-Package Components
85 lines (84 loc) • 1.88 kB
TypeScript
/**
* Represents a time-period.
*/
export declare class TimePeriod {
/**
* The minute of the period.
*/
private minute;
/**
* The hour of the period.
*/
private hour;
/**
* The day of the month of the period.
*/
private dayOfMonth;
/**
* The month of the period.
*/
private month;
/**
* The day of the week of the period.
*/
private dayOfWeek;
/**
* Initializes a new instance of the `TimePeriod` class.
*
* @param minute
* The minute of the period.
*
* @param hour
* The hour of the period.
*
* @param dayOfMonth
* The day of the month of the period.
*
* @param month
* The month of the period.
*
* @param dayOfWeek
* The day of the week of the period.
*/
constructor(minute: string, hour: string, dayOfMonth: string, month: string, dayOfWeek: string);
/**
* Gets a yearly period.
*/
static readonly Yearly: TimePeriod;
/**
* Gets a monthly period.
*/
static readonly Monthly: TimePeriod;
/**
* Gets a weekly period.
*/
static readonly Weekly: TimePeriod;
/**
* Gets a daily period.
*/
static readonly Daily: TimePeriod;
/**
* Gets an hourly period.
*/
static readonly Hourly: TimePeriod;
/**
* Gets or sets the minute of the period.
*/
Minute: string;
/**
* Gets or sets the hour of the period.
*/
Hour: string;
/**
* Gets or sets the day of the month of the period.
*/
DayOfMonth: string;
/**
* Gets or sets the month of the period.
*/
Month: string;
/**
* Gets or sets the day of the week of the period.
*/
DayOfWeek: string;
}