Re: [elixir-core:11685] [Proposal] Add `shift/2-3` to calendar types

2024-03-06 Thread 'Theo Fiedler' via elixir-lang-core
is > back on singular again. :) > > On Thu, Mar 7, 2024 at 07:20 'Theo Fiedler' via elixir-lang-core < > elixir-l...@googlegroups.com> wrote: > >> While i was strongly leaning towards singular, i understand why one would >> expect plural. Given that seems to be pr

Re: [elixir-core:11683] [Proposal] Add `shift/2-3` to calendar types

2024-03-06 Thread 'Theo Fiedler' via elixir-lang-core
gt;>>> instead, by creating a custom library: >>>> >>>> * A separate library could extend the calendar behaviour with shift_* >>>> functions >>>> * Third-party sigils can also be provided by libraries >>>> * Postgrex, Explore

[elixir-core:11677] [Proposal] Add `shift/2-3` to calendar types

2024-03-06 Thread 'Theo Fiedler' via elixir-lang-core
*Preface* We currently have `add/2-3` to manipulate calendar types in the standard library. These functions allow adding a specified amount of time of given unit to a date/time. The standard library currently misses means to apply more complex, or logical *durations *to calendar types. e.g.