Andrei,

(date)
gives the local date and notes the local time internally
(date T)
gives the UTC date and notes the UTC time internally

(time)
gives the local time
(time T)
gives the UTC time at the time of the last call to 'date
The idea being, that this gives a synchronized UTC date and time.

Just calling (date) and then calling (time) could give serious problems, if
for instance the 'date call was just prior to midnight and the 'time call was
just after midnight.

(setq UTCDate (date T) UTCTime (time T))
will give you the UTC date and time and avoid any problems with a
possible midnight rollover.
(setq LDate (date) LTime (time T))
will give you the local date and time with no midnight rollover.


Rand


Randall Dow
Witneystrasse 7, D-82008 Unterhaching, Germany
phone: +49-89-12417690  mobile: +49-176-24129991



Andrei Ivushkin wrote:
Guys, please clarify:

(date)
When called with a T argument, the current Coordinated Universal Time (UTC) is returned.

(time)
When called with a T argument, the time of the last call to date is returned.

I need to obtain current UTC not only for date but also for time. How do I?
Thanks
--
UNSUBSCRIBE: mailto:[EMAIL PROTECTED]

Reply via email to