Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo + Incorrect Info in strftime.ex #750

Open
mguilmineau opened this issue Nov 22, 2023 · 0 comments
Open

Typo + Incorrect Info in strftime.ex #750

mguilmineau opened this issue Nov 22, 2023 · 0 comments

Comments

@mguilmineau
Copy link

In timex/lib/format/datetime/formatters/strftime.ex, this section:

Months

  • %m - month number (1..12)
  • %b - abbreviated month name (Jan..Dec, no padding)
  • %h - same is %b

should instead state:

  • %m - month number (01..12)
    and (typo)
  • %h - same as %b

This is minor but we do refer our customers to the strftime hex documentation published at https://hexdocs.pm/timex/Timex.Format.DateTime.Formatters.Strftime.html, and %m is padded by default.

{2012,8,1} |> Timex.format!("%m", :strftime)
"08"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant