How to format DT_DURATION_xxx ? #399
Replies: 2 comments 1 reply
-
First of all, be careful when using the snapshot. The date/time function will change a bit and the current functions are not compatible with what will be in the final 3.1.0 release. I will also rename some of them. Java has no built-in function to format a duration, as far as I know. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answer; my project is still under development and i can wait for the official 3.1. release. |
Beta Was this translation helpful? Give feedback.
-
Hi,
at first thanks for the wonderful library...
I tested the 3.1.0 Snapshot because i need the date time features. It works very well but now i didn't know how i can format a Duration.
This works:
This gives me "PT14H" which is correct.
Now i try to format the expression with DT_FORMAT()
This gives me "01:00:00"
are there plans to support formatting of Durations ?
Thanks
Stefan
Beta Was this translation helpful? Give feedback.
All reactions