Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
Subject: Re: Time zone and 'lapsed under NT
Date: 09 Jul 1999 23:01:10 +0200	[thread overview]
Message-ID: <m3vhbtfsh5.fsf@quimbies.gnus.org> (raw)
In-Reply-To: Toby Speight's message of "09 Jul 1999 17:31:20 +0100"

Toby Speight <Toby.Speight@streapadair.freeserve.co.uk> writes:

>       (let ((tz (car (current-time-zone))))
>         (format "Date: %s %s%04d" (current-time-string time)
>                 (if (> tz 0) "+" "-") (abs (/ tz 36))))
> 
> won't work very well for non-integral time zones - India will appear
> as +0550 instead of +0530.]

Yup.  Fix in Pterodactyl Gnus v0.95.

> The Emacs documentation doesn't describe (current-time) very well.  It
> says, "the current time, as the number of seconds since 1970-01-01
> 00:00:00" - without specifying a time zone for that epoch...

Hm.  Ooop -- the clock on this machine runs 12 minutes fast.  Er, uhm.

Anyway,

(current-time-string (current-time))
=> "Fri Jul  9 22:59:05 1999"

which is the local time, here, now.  (After fixing the clock.)

But what am I getting at?  Uhm -- perhaps the bug isn't in the
generating-the-Data-header part, but in the parsing part?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


  reply	other threads:[~1999-07-09 21:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-09 15:23 Lars Magne Ingebrigtsen
1999-07-09 16:31 ` Toby Speight
1999-07-09 21:01   ` Lars Magne Ingebrigtsen [this message]
1999-07-12 18:37     ` Toby Speight
1999-07-15 11:55       ` Toby Speight
1999-08-27 17:57         ` Lars Magne Ingebrigtsen
1999-08-27 17:55       ` Lars Magne Ingebrigtsen
1999-07-12 18:44     ` Toby Speight

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=m3vhbtfsh5.fsf@quimbies.gnus.org \
    --to=larsi@gnus.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 NNTP newsgroup(s).