Theodor Fiedler
Theodor Fiedler
@bitwalker is this a change you'd be considering for Timex?
Thank you @josevalim and @kipcole9, appreciate the reviews and thoughts made around that topic! I like the idea of the Duration type, and actually have needed this sort of shift...
> Negative time scale components are permitted per ISO-8601-2 Thanks for sharing that, glad to read it's generally supported! > But the output type is indeed clearer. This is actually...
> Plus, I would rather prefer to pass a Duration to Calendar.ISO.shift_date, if we ever have such a type, rather than a keyword list. That's my suggestion in 2). It'd...
> if I specify Time.shift(time, years: 0), should it raise? Given the plan would be to add the `Duration` type first i think all fields should be required, as the...
Yes, sorry i misread your initial question actually, unset fields should be treated as zero :) thanks for these elaborate notes @kipcole9 especially on the topic of weeks!
FWIW i've dabbled a bit more with this branch: https://github.com/elixir-lang/elixir/compare/main...tfiedlerdejanze:elixir:date-shift - Introducing Calendar.Duration - Introducing Calendar.shift_naive_datetime/2 - Supporting shifting dates by hour/minute/second/ms I am wondering if 1) should the Duration...
Thank you @josevalim for all the time you've already put into reviewing! I appreciate it and am glad it evolved to something worth considering :) > I think we should...
Thank you @josevalim, very much appreciate the reviews! The docs may still be a little rough around the edges, but happy to improve or see them improved in the coming...
i'd be happy to, should i write it in the mailing list and then link it here?