Page History
UI Text Box | ||||
---|---|---|---|---|
| ||||
This function adds or subtracts time to or from any given date. Weekends will not be counted as working days. |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
addTimeSkippingWeekends(timestamp, timeToBeAdded, timeZone) #Output: Number |
UI Expand | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||
|
UI Expand | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||
Parameters used in this function
| |||||||||||||||||||||||||
Page properties | |||||||||||||||||||||||||
| Status | ||||||||||||||||||||||||
Tech review |
| ||||||||||||||||||||||||
Style guide |
|
Status | ||
---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
hidden | true |
---|
Short description | Adds timeToBeAdded to t and returns a |
| The offset, supporting the usage of time macros. Learn more about time macros. Negative values are used to subtract time. | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
timeZone | Output
| number
| The time zone used for the calculation. |
UI Text Box |
---|
| ||
Work days might depend on the time zone - it might be Sunday on the west coast of the US while at the same time it's already Monday in Australia. |
UI Expand | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||
This function | |||||||||||||
| |||||||||||||
This function adds timeToBeAdded to t and returns a
|
UI Text Box | |||||
---|---|---|---|---|---|
| |||||
Variant of the function where you can additionally define the start and the end of the weekend. This function is useful when the non-working days differ from the standard (Saturday/Sunday)Use negative values at timeToBeAdded for subtracting time from t. |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
addTimeSkippingWeekends(number ttimestamp, number timeToBeAdded, timeZone time_zone, startOfWeekend, endOfWeekend) #Output: Number |
UI Expand | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||
timeToBeAdded = 2 * {HOUR} The function will return a date-time for next Monday at 02:00
|
UI Expand | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameters used in this function
|
UI Expand | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
This function returns a
|
Use cases and examples
Page properties report | ||||||
---|---|---|---|---|---|---|
|
Page properties | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||
|
Page properties | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||
|