Page History
...
FUNCTION | RETURNED VALUE |
---|---|
nextTime(number time_instant, string schedule_name, timeZone time_zone) : number | If time_instant doesn't belong to schedule with name schedule_name, then returns closer time in the future that belongs to the schedule, otherwise returns time_instant. Example: nextTime(2017/12/01 01:00, "my_schedule", LOCAL) returns 2017/12/01 08:00.Example: nextTime(2017/12/01 15:00, "my_schedule", LOCAL) returns 2017/12/04 08:00.Example: nextTime(2017/12/01 08:00, "my_schedule", LOCAL) returns 2017/12/01 08:00.Example: nextTime(2017/11/30 15:00, "my_schedule", LOCAL) returns 2017/11/30 16:00. |
nextTime(number time_instant, string schedule_name, string additional_terms, timeZone time_zone) : number | Similar to previous function, but with extra parameter additional_terms, which is a string containing extraSchedules Schedule Definition Grammar clauses that will be attached to schedule with name schedule_name. This function can be used to include personal holidays to an existing schedule. Example without additional terms: |
...