michalmuskala / time_format

Fast date/time formatting for elixir
7 stars 3 forks source link

Parsing #7

Closed wojtekmach closed 5 years ago

wojtekmach commented 6 years ago

Hi, have you considered adding parsing to this library? I see following benefits:

  1. You could do something like this:

    check all date <- date(), format <- format() do
     assert date == parse!(format(date, format), format)
    end
  2. There's a proposal to split up Timex: https://github.com/bitwalker/timex/issues/448 so maybe parsing & formatting piece could be replaced wholesale by this library

michalmuskala commented 6 years ago

I was thinking about parsing as well, but it's significantly more involved than formatting 😅