The ~N format specifier in SRFI-19's date->string is documented to show
the nanoseconds value, with zero padding. The documentation explicates
further by showing as an example a string of nine zeroes. In fact the
implementation only pads to seven digits, and so produces incorrect
output for and n
The ~f format specifier for SRFI-19's date->string is documented as:
#~f seconds and fractional seconds, with locale
# decimal point, eg. `5.2'
Let's test that example:
scheme@(guile-user)> (use-modules (srfi srfi-19))
scheme@(guile-user)> (date->string (make-date 2 5 3
The ~f format specifier in SRFI-19's date->string function is supposed
to produce a decimal string representation of the seconds and nanoseconds
portions of a date together:
scheme@(guile-user)> (use-modules (srfi srfi-19))
scheme@(guile-user)> (date->string (make-date 55000 56 34 12 26 3 2017