diff options
| author | Jay Belanger | 2007-03-19 03:36:17 +0000 |
|---|---|---|
| committer | Jay Belanger | 2007-03-19 03:36:17 +0000 |
| commit | d95deb6744bc45274a533c6028ff9f0bad281627 (patch) | |
| tree | 7e86b7f75a5f383f3b56a07aa8c74aa24d83cff9 | |
| parent | 96cd475f4b496cc069296484a4b19f726be15526 (diff) | |
| download | emacs-d95deb6744bc45274a533c6028ff9f0bad281627.tar.gz emacs-d95deb6744bc45274a533c6028ff9f0bad281627.zip | |
(Time Zones): Mention the 2007 rule change.
| -rw-r--r-- | man/calc.texi | 20 |
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 | |||
| 17379 | to exactly 30 days even though there is a daylight-saving | 17379 | to exactly 30 days even though there is a daylight-saving |
| 17380 | transition in between. This is also true for Julian pure dates: | 17380 | transition 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 |
| 17382 | and Unix date/times will adjust for daylight saving time: | 17382 | and Unix date/times will adjust for daylight saving time: using Calc's |
| 17383 | default 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>)} |
| 17384 | evaluates to @samp{29.95834} (that's 29 days and 23 hours) | 17385 | evaluates to @samp{29.95833} (that's 29 days and 23 hours) |
| 17385 | because one hour was lost when daylight saving commenced on | 17386 | because one hour was lost when daylight saving commenced on |
| 17386 | April 7, 1991. | 17387 | April 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 |
| 17503 | By default Calc always considers daylight saving time to begin at | 17504 | By default Calc always considers daylight saving time to begin at |
| 17504 | 2 a.m.@: on the second Sunday of March, and to end at 2 a.m.@: on the | 17505 | 2 a.m.@: on the second Sunday of March (for years from 2007 on) or on |
| 17505 | first Sunday of November. This is the rule that has been in effect | 17506 | the last Sunday in April (for years before 2007), and to end at 2 a.m.@: |
| 17506 | in North America since 2007. If you are in a country that uses | 17507 | on the first Sunday of November. (for years from 2007 on) or the last |
| 17507 | different rules for computing daylight saving time, you have two | 17508 | Sunday in October (for years before 2007). These are the rules that have |
| 17508 | choices: Write your own daylight saving hook, or control time | 17509 | been in effect in much of North America since 1966 and takes into |
| 17509 | zones explicitly by setting the @code{TimeZone} variable and/or | 17510 | account the rule change that began in 2007. If you are in a |
| 17511 | country that uses different rules for computing daylight saving time, | ||
| 17512 | you have two choices: Write your own daylight saving hook, or control | ||
| 17513 | time zones explicitly by setting the @code{TimeZone} variable and/or | ||
| 17510 | always giving a time-zone argument for the conversion functions. | 17514 | always giving a time-zone argument for the conversion functions. |
| 17511 | 17515 | ||
| 17512 | The Lisp variable @code{math-daylight-savings-hook} holds the | 17516 | The Lisp variable @code{math-daylight-savings-hook} holds the |