]> git.ipfire.org Git - thirdparty/moment.git/commit
Adds comma between day-of-month and year for en-US locale.
authorJon Zeppieri <zeppieri@gmail.com>
Sat, 19 Jul 2014 00:42:35 +0000 (20:42 -0400)
committerIskren Chernev <iskren.chernev@gmail.com>
Fri, 25 Jul 2014 06:16:26 +0000 (23:16 -0700)
commit19974bc20b36ae2ac795746ac6f4c8e067ac30e6
treef799830177adc28478b066d63128039c943080a4
parentec5c9d21287d096d2e460e20e051f1ae4dc0223e
Adds comma between day-of-month and year for en-US locale.

Specifically:
- LL   => 'MMMM D, YYYY'
- LLL  => 'MMMM D, YYYY LT'
- LLLL => ''dddd, MMMM D, YYYY LT'

... and similarly for the lowercase variants.

The use of a comma between the day-of-month and year is standard
practice in US English. See:
- ICU docs [http://demo.icu-project.org/icu-bin/locexp?_=en_US]
  (under Date & Time Patterns)
- Chicago Manual of Style (by way of the Library of Congress)
  [http://lcweb2.loc.gov/ammem/ndlpedit/handbook/numberdate.html]
- Wikipedia [http://en.wikipedia.org/wiki/Date_and_time_notation_in_the_United_States]
moment.js
test/locale/en.js
test/moment/create.js
test/moment/format.js