Skip to content

Add builder with MonthMatch #44

@vrom911

Description

@vrom911

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions