mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-27 21:40:34 +02:00
SRFI-19: Add support for ISO 8601 zones with a colon.
* module/srfi/srfi-19.scm (zone-reader): handle a colon in the zone. * test-suite/tests/srfi-19.test (SRFI date/time library test): Add test. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> [rlb@defaultvalue.org: adjust commit message; add NEWS]
This commit is contained in:
parent
e6587c14dd
commit
bc2c612b89
3 changed files with 6 additions and 0 deletions
|
@ -120,6 +120,9 @@ incomplete numerical tower implementation.)"
|
|||
(pass-if "string->date works"
|
||||
(begin (string->date "2001-06-01@14:00" "~Y-~m-~d@~H:~M")
|
||||
#t))
|
||||
(pass-if "string->date accepts ISO 8601 zones with a colon"
|
||||
(begin (string->date "2024-12-31T23:59:59+01:00" "~Y-~m-~dT~H:~M:~S~z")
|
||||
#t))
|
||||
;; check for code paths where reals were passed to quotient, which
|
||||
;; doesn't work in Guile (and is unspecified in R5RS)
|
||||
(test-time->date time-utc->date date->time-utc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue