| 1 |
version 1.6.6 (release tag v1.6.6rel) |
| 2 |
===================================== |
| 3 |
* added new CF calendar "tai", which is the same as proleptic_gregorian but is only |
| 4 |
valid for dates after 1958-01-01. |
| 5 |
|
| 6 |
version 1.6.5 (release tag v1.6.5rel) |
| 7 |
===================================== |
| 8 |
* python 3.14 wheels, 3.8/3.9 support dropped. |
| 9 |
* roundtrip not correct when dates are all python datetime |
| 10 |
instances and calendar not proleptic_gregorian (issue #354). |
| 11 |
* fix cftime.datetime.strftime so it works with two digit year |
| 12 |
formatting (%y, issue #362). |
| 13 |
* speed up comparisions (using __richcmp___) and update docs. Issue #365. |
| 14 |
|
| 15 |
version 1.6.4 (release tag v1.6.4rel) |
| 16 |
===================================== |
| 17 |
* build aarch64 linux wheels (issue #333). |
| 18 |
* build musllinux wheels (issue #307). |
| 19 |
* return empty array if one provided to date2num (issue #315). |
| 20 |
* numpy 2.0 compatibility (issue #325). |
| 21 |
* handle nan/inf in num2date (issue #328). |
| 22 |
|
| 23 |
version 1.6.3 (release tag v1.6.3rel) |
| 24 |
===================================== |
| 25 |
* add support for formats without separators in strptime (e.g. '20200229', issue #301). |
| 26 |
This required removing support for > 4 digit years. |
| 27 |
* set the c_api_binop_methods compiler directive to True to retain Cython 0.x |
| 28 |
behavior for arithmetic operators for Cython >= 3.0.0 (issue #271). |
| 29 |
* support for python 3.12. |
| 30 |
|
| 31 |
version 1.6.2 (release tag v1.6.2rel) |
| 32 |
===================================== |
| 33 |
* num2date should not fail on an empty integer array (issue #287). |
| 34 |
* longdouble keyword in date2num so that a roundtrip from a time to a date |
| 35 |
and back again does not lose microsecond precision when the units require |
| 36 |
the times be encoded as floating point values (PR #284) |
| 37 |
* added strptime method (issue #277). |
| 38 |
* cibuildwheel wheel-building workflow added to github actions by @ocefpaf (triggers binary |
| 39 |
wheel builds and uploads to pypi automatically when GH release created). PR #290. |
| 40 |
|
| 41 |
version 1.6.1 (release tag v1.6.1rel) |
| 42 |
===================================== |
| 43 |
* fix failing tests on windows with numpy 1.23.0 (issue #278) |
| 44 |
* expose to_tuple module function in public API. |
| 45 |
|
| 46 |
version 1.6.0 (release tag v1.6.0rel) |
| 47 |
===================================== |
| 48 |
* fix for masked array inputs (issue #267). |
| 49 |
* improved performance of the num2date algorithm, in some cases providing |
| 50 |
an over 100x speedup (issue #269, PR#270). |
| 51 |
* fix for date2index for select != 'exact' when select='exact' works (issue |
| 52 |
#272, PR#273) |
| 53 |
|
| 54 |
version 1.5.2 (release tag v1.5.2rel) |
| 55 |
===================================== |
| 56 |
* silently change calendar='gregorian' to 'standard' internally, |
| 57 |
since 'gregorian' deprecated in CF v1.9 (issue #256). |
| 58 |
* add "is_leap_year" function (issue #259). |
| 59 |
* wheels that work on Apple M1 (arm64) available on pypi. |
| 60 |
|
| 61 |
version 1.5.1.1 |
| 62 |
=============== |
| 63 |
* no code changes, just new binary wheels for python 3.10. |
| 64 |
|
| 65 |
version 1.5.1 (release tag v1.5.1.rel) |
| 66 |
====================================== |
| 67 |
* added support for "common_year" and "common_years" units for "noleap" |
| 68 |
and "365_day" calendars (issue #5, PR #246) |
| 69 |
* check consistency of year arg and has_year_zero kwarg in cftime.datetime |
| 70 |
(issue #248). Also assume if has_year_zero not specified it should be True |
| 71 |
if year=0. Allow replace method to change has_year_zero. Issue UserWarning |
| 72 |
if year set to zero and calendar default is changed from False to True |
| 73 |
(so that user is aware the resulting instance will not be CF compliant). |
| 74 |
* '360_day' was missing from list of 'idealized' calendars. |
| 75 |
* fixed a bug that led to subclasses losing their type identity upon |
| 76 |
pickling (issue #251, PR #252). |
| 77 |
* Change default behavior of proleptic_gregorian to has_year_zero=T |
| 78 |
(to be consistent with ISO-8601 since CF does not specify the year zero convention |
| 79 |
for this calendar). Issue warning when trying to |
| 80 |
to create a cftime.datetime instance that is not allowed in CF (PR #238). |
| 81 |
|
| 82 |
version 1.5.0 (release tag v1.5.0.rel) |
| 83 |
====================================== |
| 84 |
* clean-up deprecated calendar specific subclasses (PR #231). |
| 85 |
* added string formatting support to `cftime.datetime` objects |
| 86 |
(via `cftime.datetime.__format__`) PR #232. |
| 87 |
* add support for astronomical year numbering (including year zero) for |
| 88 |
real-world calendars using 'has_year_zero' cftime.datetime kwarg (PR #234). |
| 89 |
Default is False for 'real-world' calendars ('julian', 'gregorian'/'standard', |
| 90 |
'proleptic_gregorian'). Ignored for idealized calendars like '360_day |
| 91 |
(they always have year zero). |
| 92 |
* add "change_calendar" cftime.datetime method to switch to another |
| 93 |
'real-world' calendar. Enable comparison of cftime.datetime instances |
| 94 |
with different 'real-world' calendars (using the new change_calendar method) |
| 95 |
* remove legacy `utime` class, and legacy `JulianDayFromDate` and |
| 96 |
`DateFromJulianDay` functions (replaced by `cftime.datetime.toordinal` |
| 97 |
and `cftime.datetime.fromordinal`). PR #235. |
| 98 |
* Change ValueError to TypeError in __sub__ (issue #236, PR #236). |
| 99 |
|
| 100 |
version 1.4.1 (release tag v1.4.1.rel) |
| 101 |
====================================== |
| 102 |
* Restore use of calendar-specific sub-classes in `cftime.num2date`, |
| 103 |
`cftime.datetime.__add__`, and `cftime.datetime.__sub__`. The use of them |
| 104 |
will be removed in a later release. |
| 105 |
* add 'fromordinal' static method to create a cftime.datetime instance |
| 106 |
from a julian day ordinal and calendar (inverse of 'toordinal'). |
| 107 |
|
| 108 |
version 1.4.0 (release tag v1.4.0.rel) |
| 109 |
====================================== |
| 110 |
* `cftime.date2num` will now always return an array of integers, if the units |
| 111 |
and times allow. Previously this would only be true if the units were |
| 112 |
'microseconds' (PR #225). In other circumstances, as before, `cftime.date2num` |
| 113 |
will return an array of floats. |
| 114 |
* Rewrite of julian day/calendar functions (_IntJulianDayToCalendar and |
| 115 |
_IntJulianDayFromCalendar) to remove GPL'ed code. cftime license |
| 116 |
changed to MIT (to be consistent with netcdf4-python). |
| 117 |
* Added datetime.toordinal() (returns julian day, kwarg 'fractional' |
| 118 |
can be used to include fractional day). |
| 119 |
* cftime.datetime no longer uses calendar-specific sub-classes. |
| 120 |
|
| 121 |
version 1.3.1 (release tag v1.3.1rel) |
| 122 |
===================================== |
| 123 |
* fix for issue #211 (PR #212) bug in masked array handling in date2num) |
| 124 |
* switch from travis/appveyor to github actions for CI/CD (PR #215). |
| 125 |
* switch to cython language_level=3 (no more support for python 2) (PR #217). |
| 126 |
* add __init__.py to test dir so pytest coverage works again. Add Coveralls |
| 127 |
step to github actions workflow to upload coverage data to coveralls.io (PR |
| 128 |
#217). |
| 129 |
* move package under 'src' directory so cftime can be imported |
| 130 |
from install dir (PR #218 - see |
| 131 |
https://blog.ionelmc.ro/2014/05/25/python-packaging/#the-structure). |
| 132 |
|
| 133 |
version 1.3.0 (release tag v1.3.0rel) |
| 134 |
===================================== |
| 135 |
* zero pad years in strtime (issue #194) |
| 136 |
* have cftime.datetime constructor create 'calendar-aware' instances (default is |
| 137 |
'standard' calendar, if calendar='' or None the instance is not calendar aware and some |
| 138 |
methods, like dayofwk, dayofyr, __add__ and __sub__, will not work). Fixes issue #198. |
| 139 |
The calendar specific sub-classes are now deprecated, but remain for now |
| 140 |
as stubs that just instantiate the base class and override __repr__. |
| 141 |
* update regex in _cpdef _parse_date so reference years with more than four |
| 142 |
digits can be handled. |
| 143 |
* Change default calendar in cftime.date2num from 'standard' to None |
| 144 |
(calendar associated with first input datetime object is used). |
| 145 |
* add `cftime.datetime.tzinfo=None` for compatibility with python datetime |
| 146 |
(issue #208). |
| 147 |
|
| 148 |
version 1.2.1 (release tag v1.2.1rel) |
| 149 |
===================================== |
| 150 |
* num2date uses 'proleptic_gregorian' scheme when basedate is post-Gregorian but date is pre-Gregorian |
| 151 |
(issue #182). |
| 152 |
* fix 1.2.0 regression (date2num no longer works with numpy scalar array inputs, issue #185). |
| 153 |
* Fix for issue #187 (have date2num round to the nearest second when within 1 |
| 154 |
microsecond). |
| 155 |
* Fix for issue #189 (leap years calculated incorrectly for negative years in |
| 156 |
proleptic_gregorian calendar). |
| 157 |
|
| 158 |
version 1.2.0 (release tag v1.2.0rel) |
| 159 |
===================================== |
| 160 |
* Return the default values of dayofwk and dayofyr when calendar |
| 161 |
is '' (issue #173). |
| 162 |
* fix treatment of masked arrays in num2date and date2num (issue #175). |
| 163 |
Also make sure masked arrays are output from num2date/date2num if |
| 164 |
masked arrays are input. |
| 165 |
* Where possible, use timedelta arithmetic to decode times exactly within |
| 166 |
num2date (issue #171). |
| 167 |
* Make taking the difference between two cftime datetimes to produce a |
| 168 |
timedelta exact to the microsecond; depending on the units encoding, |
| 169 |
this enables date2num to be exact as well (issue #109). |
| 170 |
* utime.date2num/utime.num2date now just call module level functions. |
| 171 |
JulianDayFromDate/DateFromJulianDay no longer used internally (PR #180). |
| 172 |
|
| 173 |
version 1.1.3 (release tag v1.1.3rel) |
| 174 |
===================================== |
| 175 |
* add isoformat method for compatibility with python datetime (issue #152). |
| 176 |
* make 'standard' default calendar for cftime.datetime |
| 177 |
so that dayofwk,dayofyr methods don't fail (issue #169). |
| 178 |
|
| 179 |
version 1.1.2 (release tag v1.1.2rel) |
| 180 |
===================================== |
| 181 |
* change dayofwk and dayofyr attributes into properties (issue #158) |
| 182 |
* fix for issue #165 (python datetime should be returned when |
| 183 |
only_use_cftime_datetimes=False). |
| 184 |
|
| 185 |
version 1.1.1.2 (release tag v1.1.1.2rel) |
| 186 |
========================================= |
| 187 |
* include pyproject.toml in MANIFEST.in so it gets |
| 188 |
included in source tarball (issue #154). |
| 189 |
|
| 190 |
version 1.1.1.1 (release tag v1.1.1.1rel) |
| 191 |
========================================= |
| 192 |
* Fix error installing with pip on python 3.8 by following |
| 193 |
PEP 517 (issue #148, PR #149) |
| 194 |
|
| 195 |
version 1.1.1 (release tag v1.1.1rel) |
| 196 |
===================================== |
| 197 |
* fix microsecond formatting issue, ensure identical results |
| 198 |
computed for arrays and scales (issue #143, PR #146). |
| 199 |
|
| 200 |
version 1.1.0 (release tag v1.1.0rel) |
| 201 |
===================================== |
| 202 |
* improved exceptions for time differences (issue #128, PR #131). |
| 203 |
* fix intersphinx entries (issue #133, PR #133) |
| 204 |
* make only_use_cftime_datetimes=True by default, so cftime datetime |
| 205 |
instances are returned by default by num2date (instead of returning python |
| 206 |
datetime instances where possible). Issue #136, PR #135. |
| 207 |
* Add daysinmonth attribute (issue #137, PR #138). |
| 208 |
* If only_use_python_datetimes=True and only_use_cftime_datetimes=False, |
| 209 |
num2date only returns python datetime instances and raises an exception |
| 210 |
if this is not possible. num2pydate convenience function added which just calls |
| 211 |
num2date with only_use_python_datetimes=True and |
| 212 |
only_use_cftime_datetimes=False. |
| 213 |
Remove positive times check, raise ValueError if python datetime |
| 214 |
tries to compute a date before MINYEAR (issue #134, PR #139) |
| 215 |
* Fix for fractional seconds in reference date in units string (issue #140, |
| 216 |
PR # 141). |
| 217 |
|
| 218 |
version 1.0.4.2 release |
| 219 |
======================= |
| 220 |
* fix for issue #126 (date2num error when converting a DatetimeProlepticGregorian |
| 221 |
object). PR #127. |