Table of Contents |
---|
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
load(sysId, timeZone)
Initializes a schedule by the sys_id.
Parameter(s):
...
...
...
...
...
...
...
...
...
getname()
Returns a schedule name.
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
isInSchedule(time)
...
...
...
...
...
...
...
...
...
...
...
...
...
...
setTimeZone(timeZone)
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
whenNext(time, timeZone)
...
...
...
...
...
...
...
...
...
...
...
...
...
Описание: Определяет, является время рабочим или нет.
Принимает: SimpleDateTime.
Возвращает: boolean.
Пример:
let time = new SimpleDateTime();
let simple_schedule = new SimpleSchedule('1', 'Europe/Moscow');
ss.info(simple_schedule.isWorkingTime(time));
Не выносить в документацию
...
Описание: Определяет, когда истекает указанное рабочее время.
Принимает:startDate - SimpleDateTime, finalWorkingSeconds - integer
Возвращает: false|string.
...
Описание: Определяет, сколько времени (в секундах) до времени начала следующего элемента расписания.
Принимает: time - SimpleDateTime; (опционально) timeZone - string (по умолчанию - пустая строка).
Возвращает: integer.
Parameter(s):
...
Return:
...
Example:
...