This function creates a timestamp in milliseconds based on input values.
dateTime(year, month, day, hour, minute, timeZone) #Output: Number
Examples
|
Parser Expression |
Description |
|---|---|
|
Bash
|
This example returns the timestamp of March 1st, 2020 15:30 in milliseconds. |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
number |
The year as number, e.g. 2020, 2015 or 2010. |
|
|
number |
The month as number, e.g. 1, 5 or 12 (starting with 1 = January, ..., 12 = December). |
|
|
number |
The day as number. |
|
|
number |
The hour in 24h format, e.g. 1, 12 or 23. |
|
|
number |
The minute as number. |
|
|
timezone |
The time zone used for the calculation. |
Output
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.
This function can come in handy when trying to create custom dates without calculating them based on existing dates.
(books) Use cases and examples
| Use case | JWT feature | Workflow function | Field type | Automated action | Parser functions |
|---|---|---|---|---|---|
| Add comment when creating issues outside of business hours |
|
withinCalendar() | |||
| Prevent setting due dates outside business hours |
|
withinCalendar() |