Page History
Page properties | |||||
---|---|---|---|---|---|
| Status | ||||
Tech review |
| ||||
Style guide |
|
Status | ||
---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
hidden | true |
---|
size | medium |
---|---|
type | info |
type | tip |
---|
Use this function instead of simply adding n * {MONTH}
, since {MONTH}
is a macro equivalent to 30 * {DAY
}. Negative values for n are used in order to subtract instead of addingThis function adds or subtracts months to or from any given date.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
addMonths(timestamp, monthsnumberOfMonths, timeZone time_zone) #Output: Number |
UI Expand | |||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||
|
UI Expand | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||
Parameters used in this function
|
ui-expand | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||
This function returns a
| Learn more about timezones | ||||||||||||
Excerpt Include | Dates, times and time zones | Dates, times and time zones | nopanel | true
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 | ||||||
---|---|---|---|---|---|---|
| ||||||
The function returns a
|
Use this function instead of simply adding Negative values for n are used in order to subtract. |
Use cases and examples
Page properties report firstcolumn Use case headings JWT feature, Workflow function, Field type, Automated action, Parser functions cql label = "parser_func_addmonths" and space = currentSpace()
Page properties | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||
|
Page properties | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||
| |||||||||||||
UI Text Box | |||||||||||||
| |||||||||||||
In this function we are not taking into consideration the fact that some months have more or less than 30 days. |