guile-user
[Top][All Lists]
Advanced

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

Re: timezone offsets


From: clemens fischer
Subject: Re: timezone offsets
Date: Mon, 29 Jan 2007 19:38:07 +0100
User-agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/6.2-PRERELEASE (i386))

On Thu, 22 Jun 2006 11:28:04 -0500 Aaron VanDevender wrote:

> On Thu, 2006-06-22 at 10:57 -0500, Aaron VanDevender wrote:
>> I notice that if I run:
>> 
>> $ guile -c '(display (strftime "%c %z\n" (localtime (current-time))))'
>> Thu Jun 22 10:51:21 2006 +0500
> 
> On second thought, I think this patch is better since in keeps the
> scheme and C representations of the tm structure consistent, and it also
> removes the offset calculation redundancy.
> 
> Index: stime.c
> ===================================================================
> RCS file: /sources/guile/guile/guile-core/libguile/stime.c,v
> retrieving revision 1.108
> diff -u -r1.108 stime.c
> --- stime.c     17 Apr 2006 00:05:41 -0000      1.108
> +++ stime.c     22 Jun 2006 16:26:36 -0000

i just checked "guile-1.8.1/libguile/stime.c", which doesn't have this
patch, although the bug didn't get fixed:

  $ guile -c '(display (strftime "%c %z\n" (localtime (current-time))))'
  Mon Jan 29 19:31:28 2007 -0100

  $ date
  Mon Jan 29 19:33:27 CET 2007

CET == +0100 in winter.


regards, clemens





reply via email to

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