Returns the time instant resulting from adding offset milliseconds to base_instant within schedule in a specific timezone.
addTime(base_instant, offset, schedule_name, timeZone) #Output: Number
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 2 Next »
Returns the time instant resulting from adding offset milliseconds to base_instant within schedule in a specific timezone.
addTime(base_instant, offset, schedule_name, timeZone) #Output: Number
Parser expression | Description |
---|---|
addTime(2017/12/04 01:00, 8 * {HOUR} + 31 * {MINUTE}, "my_schedule", LOCAL) | This example returns: "2017/12/04 17:00" |
addTime(2017/04/20 20:30, - 5 * {HOUR}, "my_schedule", LOCAL) | This example returns: "2017/04/20 13:00" Since version 2.2.41 negative offset values are supported. |
Parameters used in this function
Parameter | Input (data type) | Description |
---|---|---|
base_instant | NUMBER | |
offset | NUMBER | |
schedule_name | TEXT | The name of the schedule used for the calculation. |
timeZone | TIMEZONE | The time zone used for the calculation. |
This function returns a NUMBER representing a timestamp.
The output can be written into any Jira field of type Date Picker ore Date Time Picker.
Another very common use case is to use this function in one of the JWT calculated date-time fields.
Powered by Atlassian Confluence 8.5.16, themed by Refined 7.6.0 and Decadis AG