On Wed, Oct 12, 2022 at 11:38 PM Shiro Kawai <shiro.ka...@gmail.com> wrote:
> if I only care about day resolution (i.e. a date object with > hours/minutes/seconds/nanoseconds being all zero) I generally go via > modified julian day. > >> I find SRFI 19 even more difficult to understand than I expected. (I know that date and time calculations are amazingly complex.) For example, under Chibi Scheme: <#cb1-1>> (modified-julian-day->date (date->modified-julian-day (current-date))) <#cb1-2>ERROR on line 987 of file /usr/local/share/chibi/srfi/srfi-19.scm: invalid type, expected Integer: 34978003231524167275/21 Aha, but it works under Gauche: <#cb1-1>> (modified-julian-day->date (date->modified-julian-day (current-date))) <#cb1-2>#<date 2022/10/13 10:33:24.215952000 (-25200)> I've filed a bug. Thanks.