It would be helpful to have a builder with which you could use MonthMatch.
For example, in co-log we needed to have months in 3-letter format (like Dec, Jan, etc.), so we implemented a builder manually:
co-log/co-log#166
If you think that it makes sense to have in the chronos library, I could help with the implementation as soon as we agree on the API (to have an additional field in the DatetimeFormat or to explicitly take a Maybe (MonthMatch a) as an argument, or something else?).
Let me know what do you think.
Oh, by the way, while implementing the builder, I have noticed that functions like zeroPadDayOfMonth etc. are not exported. Would you consider exporting them, or there is a reason not to do that? (if this question if offtopic for this issue I totally understand and could create a new one if you think that this idea makes sense at all).
It would be helpful to have a builder with which you could use
MonthMatch.For example, in
co-logwe needed to have months in 3-letter format (like Dec, Jan, etc.), so we implemented a builder manually:co-log/co-log#166
If you think that it makes sense to have in the
chronoslibrary, I could help with the implementation as soon as we agree on the API (to have an additional field in theDatetimeFormator to explicitly take aMaybe (MonthMatch a)as an argument, or something else?).Let me know what do you think.
Oh, by the way, while implementing the builder, I have noticed that functions like
zeroPadDayOfMonthetc. are not exported. Would you consider exporting them, or there is a reason not to do that? (if this question if offtopic for this issue I totally understand and could create a new one if you think that this idea makes sense at all).