I need to convert a string variable in the ISO8601 format (e.g. 'P2D') into a variable of type Duration to use it in a task switch. The API method myText.toDuration() converts into the Date type not into Duration. How can I do that?
myText.toDuration()
asked 17.03.2010 at 04:26
Matthias Lang (suspended) accept rate: 0%
You can use a literal for Duration objects:
Duration d = 'P2D';
answered 19.03.2010 at 09:47
Christian St... ♦ 3.2k●3●13●38 accept rate: 88%
Once you sign in you will be able to subscribe for any updates here
Answers
Answers and Comments
Markdown Basics
learn more about Markdown
Tags:
api ×37 ivyscript ×33
Asked: 17.03.2010 at 04:26
Seen: 2,213 times
Last updated: 17.03.2010 at 04:26
Java collections in ivyScript
How to resend task notification e-mail?
Error on creating a typed Map in Ivyscript (Ivyscript and Generics)
Differences of public api
REST token authentication
Complete Task from REST
REST API and JSESSIONID
How to reset permissions of an user or role?
How can I create a role at runtime dynamically?
How can I use arrays in ivyScript