mirror of
https://github.com/samsonjs/strftime.git
synced 2026-04-27 14:57:37 +00:00
update readme to mention %- %_ and %0
This commit is contained in:
parent
71af5de2e3
commit
e18c7abf88
1 changed files with 7 additions and 1 deletions
|
|
@ -93,8 +93,14 @@ e.g. `%q` becomes `q`. Use `%%` to get a literal `%` sign.
|
||||||
of UTC and a minus sign for those west of UTC, hours and minutes follow each
|
of UTC and a minus sign for those west of UTC, hours and minutes follow each
|
||||||
padded to 2 digits and with no delimiter between them
|
padded to 2 digits and with no delimiter between them
|
||||||
|
|
||||||
For more detail see `man 3 strftime` as the format specifiers should behave identically. If behaviour differs please [file a bug](https://github.com/samsonjs/strftime/issues/new).
|
For more detail see `man 3 strftime` as the format specifiers should behave
|
||||||
|
identically. If behaviour differs please [file a bug](https://github.com/samsonjs/strftime/issues/new).
|
||||||
|
|
||||||
|
Any specifier can be modified with `-`, `_`, or `0` as well, as in Ruby.
|
||||||
|
Using `%-` will omit any leading zeroes or spaces, `%_` will force spaces
|
||||||
|
for padding instead of the default, and `%0` will force zeroes for padding.
|
||||||
|
There's some redundancy here as `%-d` and `%e` have the same result, but it
|
||||||
|
solves some awkwardness with formats like `%l`.
|
||||||
|
|
||||||
Contributors
|
Contributors
|
||||||
============
|
============
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue