help-emacs-windows
[Top][All Lists]
Advanced

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

Re: [h-e-w] Date and time?


From: Alexander G. Burchell
Subject: Re: [h-e-w] Date and time?
Date: 01 Nov 2001 09:52:11 -0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1

Please see lisp/gnus/date-time.el for Gnus date convenience
functions.  I believe from your description that once you have the
date string you are interested in you can call:

        (date-to-time "Fri Sep 28 20:04:00 2001")

which returns

        (15284 55216)

which is an emacs internal time representation.  It can be compared to
other times, etc., and accessed as:

        (decode-time '(15284 55216))

or formatted as e.g.

        (format-time-string "%Y-%m-%d %T%z" '(15284 55216))

which produces

        "2001-09-28 13:04:00-0700"

Which as you can see, does not appear correct.  However I believe the
original date is assumed to be GMT in the absence of a time zone and
the formatted representation is produced in the current time zone
(13 + 7 = 20, 1:00 PM PST = 8:00 PM GMT).

Best wishes,
-- 
Alexander G. Burchell
Wilshire Associates
address@hidden


*----*

This message is intended only for the use of the person(s) listed above 
as the intended recipient(s), and may contain information that is 
PRIVILEGED and CONFIDENTIAL.  If you are not an intended recipient, 
you may not read, copy, or distribute this message or any attachment.  
If you received this communication in error, please notify us immediately 
by e-mail and then delete all copies of this message and any attachments.


In addition you should be aware that ordinary (unencrypted) e-mail sent 
through the Internet is not secure. Do not send confidential or sensitive 
information, such as social security numbers, account numbers, personal 
identification numbers and passwords, to us via ordinary (unencrypted) 
e-mail. 



reply via email to

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