mirror of
https://github.com/samsonjs/strftime.git
synced 2026-04-27 14:57:37 +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
|
// Examples for new Date(0) in GMT
|
||||||
|
|
||||||
|
// '%'
|
||||||
|
// case '%':
|
||||||
|
case 37:
|
||||||
|
resultString += '%';
|
||||||
|
break;
|
||||||
|
|
||||||
// 'Thursday'
|
// 'Thursday'
|
||||||
// case 'A':
|
// case 'A':
|
||||||
case 65:
|
case 65:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue