srfi/19 implementation in Racket's srfi-lib

16 views
Skip to first unread message

Dominik Pantůček

unread,
Nov 13, 2021, 9:12:48 AM11/13/21
to Racket Users
Hello Racketeers,

the ~S formatter [1] in srfi/19's date->string expects struct with
nanoseconds, which means it is impossible to use it with plain date
structs (only date*).

Is this required by how SRFI 19 should work or can I submit a patch to
make it optional? Format strings work up to minute precision with struct
date and for second precision date* or srfi/19 "lax-date" / srfi:date is
required.


Cheers,
Dominik

[1]
https://github.com/racket/srfi/blob/master/srfi-lite-lib/srfi/19/time.rkt#L1195
Reply all
Reply to author
Forward
0 new messages