mirror of
https://github.com/samsonjs/strftime.git
synced 2026-03-25 09:05:48 +00:00
Support literal percent sign
By the spec for strftime(3), '%%' in the format string should be replaced with '%' in the resultString.
This commit is contained in:
parent
72a2f418c8
commit
58f5c3fee8
1 changed files with 6 additions and 0 deletions
|
|
@ -227,6 +227,12 @@
|
|||
|
||||
// Examples for new Date(0) in GMT
|
||||
|
||||
// '%'
|
||||
// case '%':
|
||||
case 37:
|
||||
resultString += '%';
|
||||
break;
|
||||
|
||||
// 'Thursday'
|
||||
// case 'A':
|
||||
case 65:
|
||||
|
|
|
|||
Loading…
Reference in a new issue