Gnus development mailing list
 help / color / mirror / Atom feed
From: visigoth@naiad.fac.cs.cmu.edu
Subject: Re: Statistics'R'Us
Date: 23 Jan 1997 05:59:48 -0500	[thread overview]
Message-ID: <vpdlo9klkrf.fsf@naiad.fac.cs.cmu.edu> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of 23 Jan 1997 10:14:43 +0100

Lars Magne Ingebrigtsen <larsi@ifi.uio.no> writes:

> Does `encode-time' expect the ZONE to be in seconds?  

Yup--that's how I was able to recognize what was going on.  Going from
one timezone to another with times that should be equivalent was
producing unix-times that were 3500 seconds off per timezone jump...
Since a timezone jump is "0100", and there a 3600 seconds in an hour,
I saw what was going on.

Oho!

Even better--I just found the documentation I had been looking for.

>From decode-time (which encode-time refers to):

> ZONE is an integer indicating the number of seconds east of Greenwich.

>From encode-time:

> This can be a string (as from `set-time-zone-rule'), or it can be a
> list (as from `current-time-zone') or an integer (as from
> `decode-time') applied without consideration for daylight savings
> time.

So--the best thing to do appears to be to take the time-zone string
and throw it in as the time zone.  The problem occurred because you
were numerifying the time-zone, which was then interpreted as seconds
from GMT.

John.


  reply	other threads:[~1997-01-23 10:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-01-16  4:11 Statistics'R'Us Lars Magne Ingebrigtsen
1997-01-21 15:43 ` Statistics'R'Us visigoth
1997-01-21 16:56   ` Statistics'R'Us Jason R. Mastaler
1997-01-21 19:55     ` Statistics'R'Us visigoth
1997-01-21 23:09       ` Statistics'R'Us Lars Magne Ingebrigtsen
1997-01-22  8:00         ` Statistics'R'Us visigoth
1997-01-23  2:41           ` Statistics'R'Us Lars Magne Ingebrigtsen
1997-01-23  4:33             ` Statistics'R'Us visigoth
1997-01-23  9:14               ` Statistics'R'Us Lars Magne Ingebrigtsen
1997-01-23 10:59                 ` visigoth [this message]
1997-01-23 11:12                   ` Statistics'R'Us Lars Magne Ingebrigtsen

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

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

  git send-email \
    --in-reply-to=vpdlo9klkrf.fsf@naiad.fac.cs.cmu.edu \
    --to=visigoth@naiad.fac.cs.cmu.edu \
    /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 NNTP newsgroup(s).