-
Notifications
You must be signed in to change notification settings - Fork 40
/
Changelog
100 lines (82 loc) · 4.13 KB
/
Changelog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version 1.3.0 (not yet released)
================================
* zero pad years in strtime (issue #194)
* have `cftime.datetime` create calendar-specific instances that support
addition and subtraction (issue #198). Name of base class changed
from `cftime.datetime` to `cftime.datetime_base` since `cftime.datetime`
is not a factory function. Iif your are using
`isinstance(my_datetime, cftime.datetime` this will need to be changed
to `isinstance(my_datetime, cftime.datetime_base)`. To maintain backward
compatibility with older versions of cftime, use
```python
try:
from cftime import datetime_base
except ImportError:
datetime_base = datetime
```
version 1.2.1 (release tag v1.2.1rel)
=====================================
* num2date uses 'proleptic_gregorian' scheme when basedate is post-Gregorian but date is pre-Gregorian
(issue #182).
* fix 1.2.0 regression (date2num no longer works with numpy scalar array inputs, issue #185).
* Fix for issue #187 (have date2num round to the nearest second when within 1
microsecond).
* Fix for issue #189 (leap years calculated incorrectly for negative years in
proleptic_gregorian calendar).
version 1.2.0 (release tag v1.2.0rel)
=====================================
* Return the default values of dayofwk and dayofyr when calendar
is '' (issue #173).
* fix treatment of masked arrays in num2date and date2num (issue #175).
Also make sure masked arrays are output from num2date/date2num if
masked arrays are input.
* Where possible, use timedelta arithmetic to decode times exactly within
num2date (issue #171).
* Make taking the difference between two cftime datetimes to produce a
timedelta exact to the microsecond; depending on the units encoding,
this enables date2num to be exact as well (issue #109).
* utime.date2num/utime.num2date now just call module level functions.
JulianDayFromDate/DateFromJulianDay no longer used internally (PR #180).
version 1.1.3 (release tag v1.1.3rel)
=====================================
* add isoformat method for compatibility with python datetime (issue #152).
* make 'standard' default calendar for cftime.datetime
so that dayofwk,dayofyr methods don't fail (issue #169).
version 1.1.2 (release tag v1.1.2rel)
=====================================
* change dayofwk and dayofyr attributes into properties (issue #158)
* fix for issue #165 (python datetime should be returned when
only_use_cftime_datetimes=False).
version 1.1.1.2 (release tag v1.1.1.2rel)
=========================================
* include pyproject.toml in MANIFEST.in so it gets
included in source tarball (issue #154).
version 1.1.1.1 (release tag v1.1.1.1rel)
=========================================
* Fix error installing with pip on python 3.8 by following
PEP 517 (issue #148, PR #149)
version 1.1.1 (release tag v1.1.1rel)
=====================================
* fix microsecond formatting issue, ensure identical results
computed for arrays and scales (issue #143, PR #146).
version 1.1.0 (release tag v1.1.0rel)
=====================================
* improved exceptions for time differences (issue #128, PR #131).
* fix intersphinx entries (issue #133, PR #133)
* make only_use_cftime_datetimes=True by default, so cftime datetime
instances are returned by default by num2date (instead of returning python
datetime instances where possible). Issue #136, PR #135.
* Add daysinmonth attribute (issue #137, PR #138).
* If only_use_python_datetimes=True and only_use_cftime_datetimes=False,
num2date only returns python datetime instances and raises an exception
if this is not possible. num2pydate convenience function added which just calls
num2date with only_use_python_datetimes=True and
only_use_cftime_datetimes=False.
Remove positive times check, raise ValueError if python datetime
tries to compute a date before MINYEAR (issue #134, PR #139)
* Fix for fractional seconds in reference date in units string (issue #140,
PR # 141).
version 1.0.4.2 release
=======================
* fix for issue #126 (date2num error when converting a DatetimeProlepticGregorian
object). PR #127.