calendar.format: allow space or tabs in rfc3339

db4
Jon Harper 2014-06-01 15:48:06 +02:00
parent 5d17cfd385
commit 278fe4830f
2 changed files with 23 additions and 1 deletions

View File

@ -94,3 +94,25 @@ IN: calendar.format.tests
{ second 24 }
}
] [ "2013-04-23T13:50:24" rfc3339>timestamp ] unit-test
[
T{ timestamp
{ year 2001 }
{ month 12 }
{ day 15 }
{ hour 02 }
{ minute 59 }
{ second 43+1/10 }
}
] [ "2001-12-15 02:59:43.1Z" rfc3339>timestamp ] unit-test
[
T{ timestamp
{ year 2001 }
{ month 12 }
{ day 15 }
{ hour 02 }
{ minute 59 }
{ second 43+1/10 }
}
] [ "2001-12-15 02:59:43.1Z" rfc3339>timestamp ] unit-test

View File

@ -171,7 +171,7 @@ M: timestamp year. ( timestamp -- )
: (rfc3339>timestamp) ( -- timestamp )
read-ymd
"Tt" expect
"Tt \t" expect
read-hms
read1 { { CHAR: . [ read-rfc3339-seconds ] } [ ] } case
read-rfc3339-gmt-offset