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: Lennart Borgman
Subject: bug#5408: date-to-time problem
Date: Mon, 18 Jan 2010 16:11:57 +0100

On Mon, Jan 18, 2010 at 4:09 PM, Juanma Barranquero <lekktu@gmail.com> wrote:
> 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.

Yes.

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

It would be much more fair if it told so. That would make the
difference more obvious.

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