Version 3.5.0: Python library
ChristopherRabotin
released this
16 Oct 02:27
·
490 commits
to master
since this release
- Epoch now store the time scale that they were defined in: this allows durations to be added in their respective time scales. For example, adding 36 hours to 1971-12-31 at noon when the Epoch is initialized in UTC will lead to a different epoch than adding that same duration to an epoch initialized at the same time in TAI (because the first leap second announced by IERS was on 1972-01-01), cf. the
test_add_durations_over_leap_seconds
test. - RFC3339 and ISO8601 fully supported for initialization of an Epoch, including the offset, e.g.
Epoch::from_str("1994-11-05T08:15:30-05:00")
, cf. #73. - Python package available on PyPI! To build the Python package, you must first install
maturin
and then build with thepython
feature flag. For example,maturin develop -F python && python
will build the Python package in debug mode and start a new shell where the package can be imported. - Fix bug when printing Duration::MIN (or any duration whose centuries are minimizing the number of centuries).
- TimeSeries can now be formatted
- Epoch can now be
ceil
-ed,floor
-ed, andround
-ed according to the time scale they were initialized in, cf. #145. - Epoch can now be initialized from Gregorian when specifying the time system:
from_gregorian
,from_gregorian_hms
,from_gregorian_at_noon
,from_gregorian_at_midnight
. - Fix bug in Duration when performing operations on durations very close to
Duration::MIN
(i.e. minus thirty-two centuries). - Duration parsing now supports multiple units in a string and does not use regular expressions. THis allows it to work with
no-std
. - Epoch parsing no longer requires
regex
. - Functions are not more idiomatic: all of the
as_*
functions becometo_*
andin_*
also becomesto_*
, cf. #155.
What's Changed
- Usability enhancements and python package by @ChristopherRabotin in #144
- Add {ceil, floor, round}_in_timesystem by @ChristopherRabotin in #146
- Workflow improvements by @ChristopherRabotin in #148
- RFC3339 and Epoch store the initial time scale used by @ChristopherRabotin in #149
- Use lexical_core for parsing durations by @ChristopherRabotin in #152
- Remove Regex in favor of lexical_core for parsing by @ChristopherRabotin in #153
- Fix formatting of Epochs by @ChristopherRabotin in #156
- Methods renamed to be idiomatic by @ChristopherRabotin in #157
Full Changelog: 3.4.0...3.5.0