Hi Yordis, thank you for the proposal. I would like to see it expanded to say how such module you would look like and how it would interact with all the other Calendar modules.
Kip also had a library where the dates and datetimes themselves could be duration and I would want to see them explored too. Thanks. On Mon, Apr 10, 2023 at 00:29 Yordis Prieto <yordis.pri...@gmail.com> wrote: > Add Duration module to enhance its time-handling capabilities. Several > modern programming ecosystems, such as Rust, .NET, Go, and Java, already > have similar modules that prove invaluable to their communities. > > - https://hexdocs.pm/timex/Timex.Duration.html > - https://doc.rust-lang.org/stable/std/time/struct.Duration.html > - > https://learn.microsoft.com/en-us/dotnet/api/system.timespan?view=net-6.0 > - https://pkg.go.dev/time#Duration > - https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html > > Key reasons to add a Duration module to Elixir: > > - Enhanced Time Handling: Complements Elixir's existing time modules for a > more comprehensive solution. > - Improved Compatibility: Promotes better interoperability and smoother > transitions for developers migrating to Elixir. > - Alignment with Modern Ecosystems: Ensures Elixir remains up-to-date with > the features expected from a modern programming language. > - Enhanced Readability and Maintainability: Simplifies working with time > intervals, resulting in more readable and maintainable code. > > I would appreciate your consideration and feedback on this proposal. > Adding a Duration module would significantly improve Elixir's time-handling > capabilities, making it an even more attractive choice for developers. > > Thank you so much for your consideration. > > -- > You received this message because you are subscribed to the Google Groups > "elixir-lang-core" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to elixir-lang-core+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elixir-lang-core/9450ba64-2f80-4ce4-84c4-cfb60d1c952en%40googlegroups.com > <https://groups.google.com/d/msgid/elixir-lang-core/9450ba64-2f80-4ce4-84c4-cfb60d1c952en%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4%2BYUULr8ahwXeK149fGO%3D-ZSGaOqA_iHJacYroj7QmNMw%40mail.gmail.com.