aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Belanger2007-03-19 03:36:17 +0000
committerJay Belanger2007-03-19 03:36:17 +0000
commitd95deb6744bc45274a533c6028ff9f0bad281627 (patch)
tree7e86b7f75a5f383f3b56a07aa8c74aa24d83cff9
parent96cd475f4b496cc069296484a4b19f726be15526 (diff)
downloademacs-d95deb6744bc45274a533c6028ff9f0bad281627.tar.gz
emacs-d95deb6744bc45274a533c6028ff9f0bad281627.zip
(Time Zones): Mention the 2007 rule change.
-rw-r--r--man/calc.texi20
1 files changed, 12 insertions, 8 deletions
diff --git a/man/calc.texi b/man/calc.texi
index d927346ff6b..0544bc1e3b4 100644
--- a/man/calc.texi
+++ b/man/calc.texi
@@ -17379,9 +17379,10 @@ commands. In particular, @samp{<may 1 1991> - <apr 1 1991>} evaluates
17379to exactly 30 days even though there is a daylight-saving 17379to exactly 30 days even though there is a daylight-saving
17380transition in between. This is also true for Julian pure dates: 17380transition in between. This is also true for Julian pure dates:
17381@samp{julian(<may 1 1991>) - julian(<apr 1 1991>)}. But Julian 17381@samp{julian(<may 1 1991>) - julian(<apr 1 1991>)}. But Julian
17382and Unix date/times will adjust for daylight saving time: 17382and Unix date/times will adjust for daylight saving time: using Calc's
17383default daylight saving time rule (see the explanation below),
17383@samp{julian(<12am may 1 1991>) - julian(<12am apr 1 1991>)} 17384@samp{julian(<12am may 1 1991>) - julian(<12am apr 1 1991>)}
17384evaluates to @samp{29.95834} (that's 29 days and 23 hours) 17385evaluates to @samp{29.95833} (that's 29 days and 23 hours)
17385because one hour was lost when daylight saving commenced on 17386because one hour was lost when daylight saving commenced on
17386April 7, 1991. 17387April 7, 1991.
17387 17388
@@ -17501,12 +17502,15 @@ non-daylight-saving time.
17501@vindex math-daylight-savings-hook 17502@vindex math-daylight-savings-hook
17502@findex math-std-daylight-savings 17503@findex math-std-daylight-savings
17503By default Calc always considers daylight saving time to begin at 17504By default Calc always considers daylight saving time to begin at
175042 a.m.@: on the second Sunday of March, and to end at 2 a.m.@: on the 175052 a.m.@: on the second Sunday of March (for years from 2007 on) or on
17505first Sunday of November. This is the rule that has been in effect 17506the last Sunday in April (for years before 2007), and to end at 2 a.m.@:
17506in North America since 2007. If you are in a country that uses 17507on the first Sunday of November. (for years from 2007 on) or the last
17507different rules for computing daylight saving time, you have two 17508Sunday in October (for years before 2007). These are the rules that have
17508choices: Write your own daylight saving hook, or control time 17509been in effect in much of North America since 1966 and takes into
17509zones explicitly by setting the @code{TimeZone} variable and/or 17510account the rule change that began in 2007. If you are in a
17511country that uses different rules for computing daylight saving time,
17512you have two choices: Write your own daylight saving hook, or control
17513time zones explicitly by setting the @code{TimeZone} variable and/or
17510always giving a time-zone argument for the conversion functions. 17514always giving a time-zone argument for the conversion functions.
17511 17515
17512The Lisp variable @code{math-daylight-savings-hook} holds the 17516The Lisp variable @code{math-daylight-savings-hook} holds the