There has been recent discussions on this mailing list and on the issues tracker about this. So I recommend searching for the previous discussion. The issue is here: https://github.com/elixir-lang/elixir/pull/10199
TL;DR - the nuances of timezones, multiple calendars, etc make this more complicated than one would expect. On Wed, Jul 29, 2020 at 7:37 PM 'Renato Ceolin' via elixir-lang-core < [email protected]> wrote: > > It would be nice if NaiveDateTime accepted more units other than > :second, :millisecond, :microsecond and :nanosecond. > > Actually it is more like adding more units to > https://hexdocs.pm/elixir/System.html#t:time_unit/0 > > Having :minute, :hour, :day:, :week, :month, :year would be nice > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elixir-lang-core/bf5a1fe5-fe2a-4e88-9380-c343704e73b5n%40googlegroups.com > <https://groups.google.com/d/msgid/elixir-lang-core/bf5a1fe5-fe2a-4e88-9380-c343704e73b5n%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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4JCDxx7yLwaqXgUM28kDqQ7r4kD7u_p7VTMUo5-gx-Spw%40mail.gmail.com.
