unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Ondrej Zajicek <santiago@crfreenet.org>
To: guile-user@gnu.org
Subject: Leap second bug?
Date: Sat, 7 Jun 2008 22:40:54 +0200	[thread overview]
Message-ID: <20080607204054.GA7677@localhost.localdomain> (raw)

[-- 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 --]

             reply	other threads:[~2008-06-07 20:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-07 20:40 Ondrej Zajicek [this message]
2008-06-08 19:45 ` Leap second bug? 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080607204054.GA7677@localhost.localdomain \
    --to=santiago@crfreenet.org \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).