CreateTimeSpan
Creates a timespan {@link java.time.Duration}
Method Signature
Arguments
Argument
Type
Required
Description
Default
days
numeric
true
The number of days in the timespan
hours
numeric
true
The number of hours in the timespan
minutes
numeric
true
The number of minutes in the timespan
seconds
numeric
true
The number of seconds in the timespan
milliseconds
numeric
false
The number of milliseconds in the timespan
0
Examples
Use of createTimespan in a bx:query
The createTimespan function is useful in the cachedwithin attribute of bx:query.
The createTimespan function returns a numeric value
Passing 6 hours, or a quarter of a day returns a double representing 1/4
Result: PT6H
Adding a date and a timestamp
Instead of using dateAdd you could add a timestamp to a date object
Result: 03-Jan-17
Additional Examples
Related
Last updated
Was this helpful?