1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-11 09:20:51 +00:00
Commit Graph

13 Commits

Author SHA1 Message Date
Richard M. Stallman
38c8f5d347 (calendar-current-time-zone): Fix typo that
transposed DST-STARTS-TIME and DST-ENDS-TIME.
1994-05-30 10:26:56 +00:00
Richard M. Stallman
1e6083840c (calendar-daylight-savings-ends): Fix typo in put. 1994-05-30 09:36:20 +00:00
Karl Heuer
8f1204db34 Update copyright. 1994-05-03 23:47:06 +00:00
Richard M. Stallman
5924340384 Fix copying conditions for current GPL version. 1994-04-07 20:30:18 +00:00
Richard M. Stallman
cd2d091aff (calendar-daylight-savings-ends)
(calendar-daylight-savings-ends): Add risky-local-variable property.
1994-04-07 19:05:41 +00:00
Richard M. Stallman
3ac14ca02a (calendar-absolute-from-time): Undo Sep 14 patch.
Fix comments instead, since they didn't match the code.
1993-11-13 23:59:53 +00:00
Brian Fox
1b41c5d14d (calendar-absolute-from-time): Fix typo by interchanging (floor) and (%). 1993-09-21 06:51:15 +00:00
Paul Eggert
d6fc04a8ca (calendar-time-zone-daylight-rules): Remove special case for Israel.
Israel has changed its daylight savings time rules, and we don't know
what the current rules are.
1993-09-06 22:37:51 +00:00
Paul Eggert
6bc457fea5 (calendar-time-zone-daylight-rules): Scan through the
next few years until at most one rule remains; if none remain, then
just use the first candidate rule; it's wrong in general, but it's
right for at least one year.  This is a better heuristic in case the
underlying time zone implementation has bugs (which is all too
common).  If possible, don't convert back and forth between gregorian
and absolute; this speeds things up noticeably.  This uses the new
calendar-nth-named-absday function.

(calendar-current-time-zone): Some locales start DST at a different
time of day than they end; allow for this by yielding both times.  The
performance speedups in calendar.el are great enough that we now no
longer need the "Checking time zone data..." message.  If
current-time-zone yields nil, don't bother with
calendar-next-time-zone-transition.  Use clearer names for local vars.

(calendar-time-zone, calendar-daylight-time-offset,
calendar-{standard,daylight}-time-zone-name,
calendar-daylight-savings-{starts,ends}): Default to US Eastern rules
for information that is not available.

(calendar-daylight-savings-{starts,ends}-time): New vars, replacing
calendar-daylight-savings-switchover-time, to support locales that
start DST at a different time of day than they end.

(calendar-absolute-from-time):
Fix typo by interchanging floor and mod.
1993-08-28 04:14:25 +00:00
Roland McGrath
4cc1b78aef Undo last change. 1993-08-10 17:57:31 +00:00
Roland McGrath
8bab5c187a (calendar-absolute-from-time, calendar-time-from-absolute): Use % in place
of mod.  Use (floor (/ A B)) in place of (floor A B).
1993-08-10 17:52:21 +00:00
Paul Eggert
632f9a0ea0 (calendar-/, calendar-%): Remove, since floor and mod
now subsume them.  All callers changed.
1993-08-10 04:14:17 +00:00
Jim Blandy
3e03d7c74e * cal-dst.el: New file.
(calendar-/, calendar-%, calendar-absolute-from-time,
        calendar-time-from-absolute, calendar-next-time-zone-transition,
        calendar-time-zone-daylight-rules): New functions.
        (calendar-current-time-zone): Moved from calendar.el and rewritten.
        (calendar-current-time-zone-cache): New variable.
        (calendar-current-time-zone, calendar-time-zone,
        calendar-daylight-time-offset, calendar-standard-time-zone-name,
        calendar-daylight-time-zone-name,
        calendar-daylight-savings-starts, calendar-daylight-savings-ends,
        calendar-daylight-savings-switchover-time): Moved from calendar.el.
1993-06-22 03:25:13 +00:00