mirror of
https://github.com/samsonjs/strftime.git
synced 2026-03-25 09:05:48 +00:00
fix alphabetization of specifiers
This commit is contained in:
parent
b9a29d1643
commit
e761363a45
1 changed files with 2 additions and 2 deletions
|
|
@ -80,12 +80,12 @@
|
|||
case 'C':
|
||||
var y = String(d.getFullYear());
|
||||
return y.slice(0,2);
|
||||
case 'h': return locale.shortMonths[d.getMonth()];
|
||||
case 'D': return _strftime(locale.formats.D || '%m/%d/%y', d, locale);
|
||||
case 'd': return pad(d.getDate());
|
||||
case 'e': return d.getDate();
|
||||
case 'F': return _strftime(locale.formats.F || '%Y-%m-%d', d, locale);
|
||||
case 'H': return pad(d.getHours());
|
||||
case 'h': return locale.shortMonths[d.getMonth()];
|
||||
case 'I': return pad(hours12(d));
|
||||
case 'j':
|
||||
var y=new Date(d.getFullYear(), 0, 1);
|
||||
|
|
@ -97,8 +97,8 @@
|
|||
case 'M': return pad(d.getMinutes());
|
||||
case 'm': return pad(d.getMonth() + 1);
|
||||
case 'n': return '\n';
|
||||
case 'p': return d.getHours() < 12 ? locale.AM : locale.PM;
|
||||
case 'P': return d.getHours() < 12 ? locale.am : locale.pm;
|
||||
case 'p': return d.getHours() < 12 ? locale.AM : locale.PM;
|
||||
case 'R': return _strftime(locale.formats.R || '%H:%M', d, locale);
|
||||
case 'r': return _strftime(locale.formats.r || '%I:%M:%S %p', d, locale);
|
||||
case 'S': return pad(d.getSeconds());
|
||||
|
|
|
|||
Loading…
Reference in a new issue