[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Leap second bug?

From: Ondrej Zajicek
Subject: Leap second bug?
Date: Sat, 7 Jun 2008 22:40:54 +0200
User-agent: Mutt/1.5.13 (2006-08-11)


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: address@hidden)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3,
"To err is human -- to blame it on a computer is even more so."

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]