]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Improve Date Fields descriptions for issue #419 450/head
authorldwoolley <ldwoolley@gmail.com>
Fri, 7 Oct 2016 23:39:04 +0000 (16:39 -0700)
committerGitHub <noreply@github.com>
Fri, 7 Oct 2016 23:39:04 +0000 (16:39 -0700)
Described recommendation to use "Y" with "w" for consistent results in ISO year-week and indicated possible surprising results for year rollover and total number of weeks in a year.

docs/dates.rst

index 48fd58fd538f01969e2dc2859899ff2fb6c51c1a..bb3398abbef84b97c2c9719b158d188781db7f02 100644 (file)
@@ -140,7 +140,10 @@ Date Fields
   |          |        | the padding, but for two letters it also specifies the |
   |          |        | maximum length.                                        |
   |          +--------+--------------------------------------------------------+
-  |          | ``Y``  | Same as ``y`` but uses the ISO year-week calendar.     |
+  |          | ``Y``  | Same as ``y`` but uses the ISO year-week calendar. ISO |
+  |          |        | year-week increments after completing the last week of |
+  |          |        | the year. Therefore it may change a few days before or |
+  |          |        | after ``y``. Recommend use with the ``w`` Symbol.      |
   |          +--------+--------------------------------------------------------+
   |          | ``u``  | ??                                                     |
   +----------+--------+--------------------------------------------------------+
@@ -158,7 +161,9 @@ Date Fields
   |          |        | abbreviation, or four for the full name, or 5 for the  |
   |          |        | narrow name.                                           |
   +----------+--------+--------------------------------------------------------+
-  | Week     | ``w``  | Week of year.                                          |
+  | Week     | ``w``  | Week of year according to the ISO year-week calendar.  |
+  |          |        | This may have 52 or 53 weeks depending on the year.    |
+  |          |        | Recommend use with the ``Y`` symbol.                   |
   |          +--------+--------------------------------------------------------+
   |          | ``W``  | Week of month.                                         |
   +----------+--------+--------------------------------------------------------+