Re: [elixir-core:11572] Date.shift implementation

2023-10-22 Thread José Valim
Timex.shift is probably the best reference: https://hexdocs.pm/timex/Timex.html#shift/2 Keep in mind it has many pitfalls, especially related to timezones and multiple calendars, so it is probably necessary to draft a proposal before. There is also a debate of which module it should be defined

Re: [elixir-core:11574] Date.shift implementation

2023-10-22 Thread gpopides
Thanks, i will have a look on the referenece first On Sunday, 22 October 2023 at 12:23:04 UTC+2 José Valim wrote: > Timex.shift is probably the best reference: > https://hexdocs.pm/timex/Timex.html#shift/2 > > Keep in mind it has many pitfalls, especially related to timezones and > multiple

[elixir-core:11572] Date.shift implementation

2023-10-22 Thread gpopides
Based on Jose's comment in this post > but I would be 90% as a happy if we had Date.shift(date, months: 1, days: 10) in Elixir (PRs are welcome, I consider this to be the last calendar

Re: [elixir-core:11575] [Proposal] support directories in `external_resource`

2023-10-22 Thread 'Alexander Steppke' via elixir-lang-core
Thanks for the feedback, I've completely forgotten about `__mix_recompile__?`! @Jose: I couldn't find anything implementing it in LiveView or Phoenix though, is it implemented differently for `embed_templates`? On Thursday, October 19, 2023 at 11:07:41 AM UTC+2 and...@andrewtimberlake.com