unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Leap second bug?
@ 2008-06-07 20:40 Ondrej Zajicek
  2008-06-08 19:45 ` Ondrej Zajicek
  2008-06-08 22:00 ` Ludovic Courtès
  0 siblings, 2 replies; 7+ messages in thread
From: Ondrej Zajicek @ 2008-06-07 20:40 UTC (permalink / raw)
  To: guile-user

[-- Attachment #1: Type: text/plain, Size: 568 bytes --]


Hello

I found this:

(use-modules (srfi srfi-19))
(define (str->date str) (string->date str "~d-~m-~Y"))
(define (date->str str) (date->string str "~d-~m-~Y"))

(date->str (time-utc->date (date->time-utc (str->date "01-01-2006"))))
-> "31-12-2005"

Is is a bug in leap second handling or is it a expected behavior?


-- 
Elen sila lumenn' omentielvo

Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-06-10 18:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-07 20:40 Leap second bug? Ondrej Zajicek
2008-06-08 19:45 ` Ondrej Zajicek
2008-06-08 22:00 ` Ludovic Courtès
2008-06-09 14:58   ` Greg Troxel
2008-06-09 17:18     ` Keith Wright
2008-06-10 15:15   ` Jon Wilson
2008-06-10 18:26     ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).