mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
Fixes <https://bugs.gnu.org/21911>. Fixes <https://bugs.gnu.org/22034>. Fixes <https://bugs.gnu.org/21902>. Partially fixes <https://bugs.gnu.org/21904>. Reported by Zefram <zefram@fysh.org>. * doc/ref/srfi-modules.texi (SRFI-19 Introduction): Fix the definitions of Julian Day and Modified Julian Day. Give the correct full names of UTC and TAI. * module/srfi/srfi-19.scm: Import (srfi srfi-1). Use modern Guile keyword syntax in the 'define-module' form. (leap-second-neg-delta): New procedure, derived from a similar procedure in the latest upstream SRFI-19 reference implementation. (priv:time-tai->time-utc!, time-tai->julian-day) (time-monotonic->julian-day): Use 'leap-second-neg-delta'. (local-tz-offset): Fix comment. (leap-second?): Remove. (tai-before-leap-second?): New procedure, derived from upstream SRFI-19. (time-utc->date): Use 'define*' to handle the optional argument. Remove the leap second handling, following upstream SRFI-19. (time-tai->date): Rewrite in terms of 'time-utc->date'. Add special leap second handling, following upstream SRFI-19. (time-monotonic->date): Rewrite in terms of 'time-tai->date'. (date->time-tai, date->time-monotonic): Add special leap second handling, following upstream SRFI-19. (directives): In the entry for the "~Y" escape in 'date->string', pad the year field to 4 characters, following upstream SRFI-19. * test-suite/tests/srfi-19.test: Add tests. |
||
---|---|---|
.. | ||
srfi-4 | ||
srfi-9 | ||
srfi-42 | ||
srfi-64 | ||
srfi-67 | ||
srfi-1.scm | ||
srfi-2.scm | ||
srfi-4.scm | ||
srfi-6.scm | ||
srfi-8.scm | ||
srfi-9.scm | ||
srfi-10.scm | ||
srfi-11.scm | ||
srfi-13.scm | ||
srfi-14.scm | ||
srfi-16.scm | ||
srfi-17.scm | ||
srfi-18.scm | ||
srfi-19.scm | ||
srfi-26.scm | ||
srfi-27.scm | ||
srfi-28.scm | ||
srfi-31.scm | ||
srfi-34.scm | ||
srfi-35.scm | ||
srfi-37.scm | ||
srfi-38.scm | ||
srfi-39.scm | ||
srfi-41.scm | ||
srfi-42.scm | ||
srfi-43.scm | ||
srfi-45.scm | ||
srfi-60.scm | ||
srfi-64.scm | ||
srfi-67.scm | ||
srfi-69.scm | ||
srfi-71.scm | ||
srfi-88.scm | ||
srfi-98.scm | ||
srfi-111.scm |