From d149f713e049acf0e6f637065d63fae6b2fcdb2a Mon Sep 17 00:00:00 2001 From: Sophie Kirschner Date: Mon, 13 Aug 2018 12:51:02 +0300 Subject: [PATCH] Tiny documentation fixes --- directives.md | 4 ++-- readme.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/directives.md b/directives.md index c7c7bda..ce1f697 100644 --- a/directives.md +++ b/directives.md @@ -65,7 +65,7 @@ timestamp produced with the output of any other modifier - `%Y` full year number - `%z` timezone offset, e.g. "+0100" - `%Z` timezone name or offset, e.g. "UTC" or "+0100" -- `%+` date; same as "%a %b %e %H:%M:%S %Z %Y" +- `%+` date; same as `%a %b %e %H:%M:%S %Z %Y` - `%#` era name, i.e. "CE" or "BCE" - `%%` literal "%" character @@ -191,7 +191,7 @@ Like other numeric directives, this one can be modified using the no-padding `-` ### Day of the year %j -Ordinal day number in the year. The number is padded with spaces if it is fewer than three digits long. The day number is always in the range 000 through 366. +Ordinal day number in the year. The number is padded with zeroes if it is fewer than three digits long. The day number is always in the range 000 through 366. Like other numeric directives, this one can be modified using the no-padding `-`, space-padding `_`, and ordinal `:` modifiers. diff --git a/readme.md b/readme.md index e684e45..c375d8c 100644 --- a/readme.md +++ b/readme.md @@ -92,7 +92,7 @@ console.log(date.toISOString()); ### Locale-dependent strings -The **strftime** and **strptime** functions default to english weekday names, +The **strftime** and **strptime** functions default to English weekday names, month names, and ordinals. However, it is possible to specify different text by passing an options object.