emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r111394: * doc/misc/calc.texi (Free-F


From: Jay Belanger
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r111394: * doc/misc/calc.texi (Free-Form Dates): Expand on the date reading
Date: Tue, 01 Jan 2013 20:54:33 -0600
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 111394
committer: Jay Belanger <address@hidden>
branch nick: trunk
timestamp: Tue 2013-01-01 20:54:33 -0600
message:
  * doc/misc/calc.texi (Free-Form Dates): Expand on the date reading
    algorithm.
  
  * lisp/calc/README: Mention ISO 8601 week-numbering dates.
modified:
  doc/misc/ChangeLog
  doc/misc/calc.texi
  lisp/ChangeLog
  lisp/calc/README
=== modified file 'doc/misc/ChangeLog'
--- a/doc/misc/ChangeLog        2012-12-27 08:21:08 +0000
+++ b/doc/misc/ChangeLog        2013-01-02 02:54:33 +0000
@@ -1,3 +1,8 @@
+2013-01-02  Jay Belanger  <address@hidden>
+
+       * calc.texi (Free-Form Dates): Expand on the date reading
+       algorithm.
+
 2012-12-27  Glenn Morris  <address@hidden>
 
        * viper.texi (Rudimentary Changes, Key Bindings, Key Bindings):

=== modified file 'doc/misc/calc.texi'
--- a/doc/misc/calc.texi        2012-12-22 19:09:52 +0000
+++ b/doc/misc/calc.texi        2013-01-02 02:54:33 +0000
@@ -13717,15 +13717,21 @@
 @samp{p.m.}, and @samp{mid} are also understood.  Obviously
 @samp{noon} and @samp{midnight} are allowed only on 12:00:00.
 The words @samp{noon}, @samp{mid}, and @samp{midnight} are also
-recognized with no number attached.
+recognized with no number attached.  Midnight will represent the
+beginning of a day.
 
 If there is no AM/PM indicator, the time is interpreted in 24-hour
 format.
 
-To read the date portion, all words and numbers are isolated
-from the string; other characters are ignored.  All words must
-be either month names or day-of-week names (the latter of which
-are ignored).  Names can be written in full or as three-letter
+When reading the date portion, Calc first checks to see if it is an
+ISO 8601 week-numbering date; if the string contains an integer
+representing the year, a ``W'' followed by two digits for the week
+number, and an integer from 1 to 7 representing the weekday (in that
+order), then all other characters are ignored and this information
+determines the date.  Otherwise, all words and numbers are isolated
+from the string; other characters are ignored.  All words must be
+either month names or day-of-week names (the latter of which are
+ignored). Names can be written in full or as three-letter
 abbreviations.
 
 Large numbers, or numbers with @samp{+} or @samp{-} signs,

=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2013-01-01 11:02:14 +0000
+++ b/lisp/ChangeLog    2013-01-02 02:54:33 +0000
@@ -1,3 +1,7 @@
+2013-01-02  Jay Belanger  <address@hidden>
+
+       * calc/README: Mention ISO 8601 week-numbering dates.
+
 2013-01-01  Martin Rudalics  <address@hidden>
 
        * view.el (view-mode-enable): New argument run-view-mode-hook.

=== modified file 'lisp/calc/README'
--- a/lisp/calc/README  2012-11-22 01:47:04 +0000
+++ b/lisp/calc/README  2013-01-02 02:54:33 +0000
@@ -77,6 +77,7 @@
   dates.)  This can be configured with the customizable variable
   `calc-gregorian-switch'.
 
+* Support for ISO 8601 dates added.
 Emacs 24.3
 
 * Algebraic simplification mode is now the default.


reply via email to

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