bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#5408: date-to-time problem


From: Juanma Barranquero
Subject: bug#5408: date-to-time problem
Date: Mon, 18 Jan 2010 16:09:52 +0100

On Mon, Jan 18, 2010 at 01:00, Lennart Borgman
<lennart.borgman@gmail.com> wrote:

> But date-to-time does not say that it assumes GMT.

No. Perhaps it should.

> And current-time-string does not say it will give my local time.

It seems fair to default to your local timezone. Note that there's
also a `current-time-zone', so

ELISP> (current-time-zone)
(3600 "+0100")

ELISP> (current-time-zone (date-to-time "Sun Jan 17 22:39:58 2010"))
(3600 "+0100")

    Juanma






reply via email to

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