bitwalker / bitwalker/timex

Typo + Incorrect Info in strftime.ex

Open
#750 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Elixir
Stars
1.8k
Forks
407
PR merge metrics
No merged PRs in 30d

Description

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"

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.