2020-05-08 11:03:49 +00:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"format": "Y n j D H i",
|
2023-10-30 08:20:27 +00:00
|
|
|
"digits": null,
|
2020-05-08 11:03:49 +00:00
|
|
|
"data": [ null, "2011", "2", "3", "unused", "04", "05", "UTC" ],
|
|
|
|
"expected": "2011-02-03T04:05:00+00:00",
|
|
|
|
"message": "Date is parsed"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"format": "xkY xg d \"asdf\" G i",
|
2023-10-30 08:20:27 +00:00
|
|
|
"digits": null,
|
2020-05-08 11:03:49 +00:00
|
|
|
"data": [ null, "2554", "February", "03", "4", "05", "UTC" ],
|
|
|
|
"expected": "2011-02-03T04:05:00+00:00",
|
|
|
|
"message": "Date is parsed"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"format": "H i n j Y",
|
2023-10-30 08:20:27 +00:00
|
|
|
"digits": null,
|
2020-05-08 11:03:49 +00:00
|
|
|
"data": [ null, "04", "05", "2", "3", "2011", "UTC" ],
|
|
|
|
"expected": "2011-02-03T04:05:00+00:00",
|
|
|
|
"message": "Date is parsed"
|
2023-10-30 08:20:27 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"format": "Y-m-d",
|
|
|
|
"digits": [ "⁰", "¹", "²" ],
|
|
|
|
"data": [ null, "²⁰²¹", "¹²", "⁰¹", "UTC" ],
|
|
|
|
"expected": "2021-12-01T00:00:00+00:00",
|
|
|
|
"message": "Localized digits are un-transformed"
|
2020-05-08 11:03:49 +00:00
|
|
|
}
|
|
|
|
]
|