-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New additions to dw::core::Periods #19
Comments
This is releated from #17 |
I think |
Would it be possible to set a return format for the between function? This would allow the function to return different time formats. Example:
==== Output
|
The idea is to not truncate |
Now you can do:
Not very intuitive to guess you need to write "months" neither. The other way can be also to create casting functions like |
Sorry for not explaining |
I see we are tackling durations against Time, but what about working with durations to sum or subtract them? Would simplify this scenario https://stackoverflow.com/questions/68958484/how-to-aggregate-data-with-particular-column-using-dataweave-2-0 |
After discussing that dates manipulation is hard we started working on a way to create Periods. I would like to start discussing the new additions
dw::core::Periods
Examples
A duration is a Time Based Period. And a Period is a Date base Period.
Time based does support decimal numbers and the correct calculation should be done.
Date based DOESN'T support decimal numbers and it will FAIL.
The text was updated successfully, but these errors were encountered: