diff --git a/Changelog b/Changelog
index 6c206aa1..5a737acd 100644
--- a/Changelog
+++ b/Changelog
@@ -5,19 +5,10 @@ version 1.5.0 (not yet released)
(via `cftime.datetime.__format__`) PR #232.
* add support for astronomical year numbering (including year zero) for
real-world calendars using 'has_year_zero' cftime.datetime kwarg (PR #234).
- Default is False for 'julian','gregorian'/'standard', but True
- for 'proleptic_gregorian' (since ISO 8601 has a year zero).
- The change for proleptic_gregorian is not backwards-compatible, users
- who have been employing dates before 1-1-1 must now set has_year_zero=False
- explicitly.
- The calendar-specific defaults conform to the proposed updated CF standard
- (https://github.com/cf-convention/cf-conventions/issues/298).
+ Default is False for 'real-world' calendars and True
+ for idealized calendars.
Ignored for idealized calendars like '360_day'
- (they always have year zero). Strictly speaking, CF
- does not allow for dates before 1-1-1 in the 'julian'
- or 'gregorian'/'standard' calendars, or dates before 1-1-1 in
- the 'proleptic_gregorian' calendar without a year zero, but cftime will
- but will issue a warning without raising an exception.
+ (they always have year zero).
* add "change_calendar" cftime.datetime method to switch to another
'real-world' calendar. Enable comparison of cftime.datetime instances
with different 'real-world' calendars (using the new change_calendar method)
diff --git a/docs/_build/doctrees/api.doctree b/docs/_build/doctrees/api.doctree
index 1acc4a1d..5721e137 100644
Binary files a/docs/_build/doctrees/api.doctree and b/docs/_build/doctrees/api.doctree differ
diff --git a/docs/_build/doctrees/environment.pickle b/docs/_build/doctrees/environment.pickle
index e7c3934c..c83d8c84 100644
Binary files a/docs/_build/doctrees/environment.pickle and b/docs/_build/doctrees/environment.pickle differ
diff --git a/docs/_build/doctrees/index.doctree b/docs/_build/doctrees/index.doctree
index 50e66293..3a442cc6 100644
Binary files a/docs/_build/doctrees/index.doctree and b/docs/_build/doctrees/index.doctree differ
diff --git a/docs/_build/doctrees/installing.doctree b/docs/_build/doctrees/installing.doctree
index fa1ff1c8..ca2c5c47 100644
Binary files a/docs/_build/doctrees/installing.doctree and b/docs/_build/doctrees/installing.doctree differ
diff --git a/docs/_build/html/_static/basic.css b/docs/_build/html/_static/basic.css
index 24a49f09..be19270e 100644
--- a/docs/_build/html/_static/basic.css
+++ b/docs/_build/html/_static/basic.css
@@ -4,7 +4,7 @@
*
* Sphinx stylesheet -- basic theme.
*
- * :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
+ * :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
diff --git a/docs/_build/html/_static/doctools.js b/docs/_build/html/_static/doctools.js
index 7d88f807..144884ea 100644
--- a/docs/_build/html/_static/doctools.js
+++ b/docs/_build/html/_static/doctools.js
@@ -4,7 +4,7 @@
*
* Sphinx JavaScript utilities for all documentation.
*
- * :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
+ * :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
diff --git a/docs/_build/html/_static/language_data.js b/docs/_build/html/_static/language_data.js
index d2b4ee91..0e7dc7e9 100644
--- a/docs/_build/html/_static/language_data.js
+++ b/docs/_build/html/_static/language_data.js
@@ -5,7 +5,7 @@
* This script contains the language-specific data used by searchtools.js,
* namely the list of stopwords, stemmer, scorer and splitter.
*
- * :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
+ * :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
diff --git a/docs/_build/html/_static/pygments.css b/docs/_build/html/_static/pygments.css
index f346859c..de7af262 100644
--- a/docs/_build/html/_static/pygments.css
+++ b/docs/_build/html/_static/pygments.css
@@ -1,4 +1,4 @@
-pre { line-height: 125%; margin: 0; }
+pre { line-height: 125%; }
td.linenos pre { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; }
span.linenos { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; }
td.linenos pre.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
diff --git a/docs/_build/html/_static/searchtools.js b/docs/_build/html/_static/searchtools.js
index 261ecaa9..6fc9e7f3 100644
--- a/docs/_build/html/_static/searchtools.js
+++ b/docs/_build/html/_static/searchtools.js
@@ -4,7 +4,7 @@
*
* Sphinx JavaScript utilities for the full-text search.
*
- * :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
+ * :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
diff --git a/docs/_build/html/api.html b/docs/_build/html/api.html
index da4bea8b..2dc21888 100644
--- a/docs/_build/html/api.html
+++ b/docs/_build/html/api.html
@@ -12,7 +12,6 @@
-
@@ -59,10 +58,8 @@
is used and the year zero exists. If set to False for real-world
calendars, then historical year numbering is used and the year 1 is
preceded by year -1 and no year zero exists.
-The defaults are set to conform with
-CF conventions (False for ‘julian’, ‘gregorian’/’standard’, True
-for ‘proleptic_gregorian’ (ISO 8601) and True for the idealized
-calendars ‘noleap’/’365_day’, ‘360_day’, 366_day’/’all_leap’)
+The defaults are False for real-world calendars
+and True for idealized calendars.
The defaults can only be over-ridden for the real-world calendars,
for the the idealized calendars the year zero
always exists and the has_year_zero kwarg is ignored.
@@ -100,10 +97,8 @@
is used and the year zero exists. If set to False for real-world
calendars, then historical year numbering is used and the year 1 is
preceded by year -1 and no year zero exists.
-The defaults are set to conform with
-CF conventions (False for ‘julian’, ‘gregorian’/’standard’, True
-for ‘proleptic_gregorian’ (ISO 8601) and True for the idealized
-calendars ‘noleap’/’365_day’, ‘360_day’, 366_day’/’all_leap’)
+The defaults are False for real-world calendars
+and True for idealized calendars.
The defaults can only be over-ridden for the real-world calendars,
for the the idealized calendars the year zero
always exists and the has_year_zero kwarg is ignored.
@@ -137,10 +132,8 @@
is used and the year zero exists. If set to False for real-world
calendars, then historical year numbering is used and the year 1 is
preceded by year -1 and no year zero exists.
-The defaults are set to conform with
-CF conventions (False for ‘julian’, ‘gregorian’/’standard’, True
-for ‘proleptic_gregorian’ (ISO 8601) and True for the idealized
-calendars ‘noleap’/’365_day’, ‘360_day’, 366_day’/’all_leap’)
+The defaults are False for real-world calendars
+and True for idealized calendars.
The defaults can only be over-ridden for the real-world calendars,
for the the idealized calendars the year zero
always exists and the has_year_zero kwarg is ignored.
@@ -152,11 +145,20 @@
instances.
The default format of the string produced by strftime is controlled by self.format
(default %Y-%m-%d %H:%M:%S).
+
+
+change_calendar(self, calendar, has_year_zero=None)¶
Create a datetime instance from a julian day ordinal, calendar
-and (optionally) year zero convention (inverse of toordinal).
+and (optionally) year zero convention (inverse of toordinal). The
+Julian day number is the number of days since noon UTC January 1, 4713
+in the proleptic julian calendar with no year zero (November 24, 4713
+in the proleptic gregorian calendar that includes the year zero). For
+idealized calendars, the origin is noon UTC of the year zero.
@@ -234,10 +236,8 @@
is used and the year zero exists. If set to False for real-world
calendars, then historical year numbering is used and the year 1 is
preceded by year -1 and no year zero exists.
-The defaults are set to conform with
-CF conventions (False for ‘julian’, ‘gregorian’/’standard’, True
-for ‘proleptic_gregorian’ (ISO 8601) and True for the idealized
-calendars ‘noleap’/’365_day’, ‘360_day’, 366_day’/’all_leap’)
+The defaults are False for real-world calendars
+and True for idealized calendars.
The defaults can only be over-ridden for the real-world calendars,
for the the idealized calendars the year zero
always exists and the has_year_zero kwarg is ignored.
@@ -347,7 +347,7 @@