bug#22033: time-utc format is lossy

2018-10-20 Thread Mark H Weaver
tags 22033 + notabug close 22033 thanks Hi Zefram, Zefram writes: > I wrote: >> These two seconds are perfectly >>distinct parts of the UTC time scale, and the time-utc format ought to >>preserve their distinction. > > This is a problematic goal. At the time I

bug#22033: time-utc format is lossy

2017-04-24 Thread Zefram
I wrote: > These two seconds are perfectly >distinct parts of the UTC time scale, and the time-utc format ought to >preserve their distinction. This is a problematic goal. At the time I wrote the bug report I didn't have a satisfactory idea of how to achieve it,

bug#22033: time-utc format is lossy

2015-11-27 Thread Zefram
In SRFI-19, round-tripping some UTC dates through the time-utc structure format, for the couple of seconds around a leap second: scheme@(guile-user)> (use-modules (srfi srfi-19)) scheme@(guile-user)> (define (tdate d) (write (list (date->string d "~4") (date->string (time-utc->date (date->time-ut