Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix truncated timepoint addition bug #234

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
coverage: false
name: ${{ matrix.os }} py-${{ matrix.python-version }} ${{ matrix.tz }} ${{ matrix.coverage && '(coverage)' || '' }}
env:
PYTEST_ADDOPTS: -n 5 -m 'slow or not slow'
PYTEST_ADDOPTS: -n 5 -m 'slow or not slow' --color=yes
steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand Down
26 changes: 10 additions & 16 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@ creating a new release entry be sure to copy & paste the span tag with the
`actions:bind` attribute, which is used by a regex to find the text to be
updated. Only the first match gets replaced, so it's fine to leave the old
ones in. -->
--------------------------------------------------------------------------------
## isodatetime 3.2.0 (<span actions:bind='release-date'>Upcoming</span>)

### Breaking changes

[#234](https://github.com/metomi/isodatetime/pull/234):
Fixed behaviour of adding a truncated TimePoint to a normal TimePoint.

[#203](https://github.com/metomi/isodatetime/pull/203):
`TimePoint.seconds_since_unix_epoch` is now an `int` instead of `str`.


## isodatetime 3.1.0 (<span actions:bind='release-date'>Released 2023-10-05</span>)

Expand All @@ -19,7 +28,6 @@ Requires Python 3.7+
[#231](https://github.com/metomi/isodatetime/pull/231):
Fixed mistakes in the CLI help text.

--------------------------------------------------------------------------------

## isodatetime 3.0.0 (<span actions:bind='release-date'>Released 2022-03-31</span>)

Expand All @@ -44,7 +52,6 @@ TimePoints.
Fixed a bug where the `timezone` functions would return incorrect results
for certain non-standard/unusual system time zones.

--------------------------------------------------------------------------------

## isodatetime 2.0.2 (Released 2020-07-01)

Expand All @@ -62,7 +69,6 @@ CLI can now read in from piped stdin.
TimePoints can no longer be created with out-of-bounds values, e.g.
`2020-00-00`, `2020-13-32T25:60`, `--02-30` are not valid.

--------------------------------------------------------------------------------

## isodatetime 2.0.1 (Released 2019-07-23)

Expand All @@ -86,7 +92,6 @@ Support the CF compatible calendar mode strings `360_day`, `365_day` & `366_day`
[#132](https://github.com/metomi/isodatetime/pull/132):
Change namespace of `isodatetime` to `metomi.isodatetime`

--------------------------------------------------------------------------------

## isodatetime 2.0.0 (Released 2019-01-22)

Expand Down Expand Up @@ -119,7 +124,6 @@ Fixed time point dumper time zone inconsistency.
[#118](https://github.com/metomi/isodatetime/pull/118):
Fixed time point dumper date type inconsistency.

--------------------------------------------------------------------------------

## isodatetime 2018.11.0 (Released 2018-11-05)

Expand All @@ -143,7 +147,6 @@ Fix for timezone offsets where minutes are not 0.
[#87](https://github.com/metomi/isodatetime/pull/87):
Add `setup.py`.

--------------------------------------------------------------------------------

## isodatetime 2018.09.0 (Released 2018-09-11)

Expand All @@ -155,7 +158,6 @@ This is the 10th release of isodatetime.
New TimePoint method to find the next smallest property that is missing from a
truncated representation.

--------------------------------------------------------------------------------

## isodatetime 2018.02.0 (Released 2018-02-06)

Expand All @@ -166,7 +168,6 @@ This is the 9th release of isodatetime.
[#82](https://github.com/metomi/isodatetime/pull/82):
Fix subtracting a later timepoint from an earlier one.

--------------------------------------------------------------------------------

## isodatetime 2017.08.0 (Released 2017-08-09)

Expand All @@ -180,13 +181,11 @@ Fix error string for bad conversion for strftime/strptime.
[#74](https://github.com/metomi/isodatetime/pull/74):
Slotted the data classes to improve memory footprint.

--------------------------------------------------------------------------------

## isodatetime 2017.02.1 (Released 2017-02-21)

This is the 7th release of isodatetime. Admin only release.

--------------------------------------------------------------------------------

## isodatetime 2017.02.0 (Released 2017-02-20)

Expand All @@ -197,7 +196,6 @@ This is the 6th release of isodatetime.
[#73](https://github.com/metomi/isodatetime/pull/73):
Fix adding duration not in weeks and duration in weeks.

--------------------------------------------------------------------------------

## isodatetime 2014.10.0 (Released 2014-10-01)

Expand All @@ -216,7 +214,6 @@ Fix `date1 - date2` where `date2` is greater than `date1` and `date1` and
[#60](https://github.com/metomi/isodatetime/pull/60):
Stricter dumper year bounds checking.

--------------------------------------------------------------------------------

## isodatetime 2014.08.0 (Released 2014-08-11)

Expand All @@ -235,7 +232,6 @@ digits.
Speeds up calculations involving counting the days over a number of consecutive
years.

--------------------------------------------------------------------------------

## isodatetime 2014.07.0 (Released 2014-07-29)

Expand All @@ -253,7 +249,6 @@ More flexible API for calendar mode.
[#48](https://github.com/metomi/isodatetime/pull/48):
`TimeInterval` class: add `get_seconds` method and input prettifying.

--------------------------------------------------------------------------------

## isodatetime 2014.06.0 (Released 2014-06-19)

Expand All @@ -279,7 +274,6 @@ Implement subset of strftime/strptime POSIX standard.
[#28](https://github.com/metomi/isodatetime/pull/28):
Fix get next point for single-repetition recurrences.

--------------------------------------------------------------------------------

## isodatetime 2014-03 (Released 2014-03-13)

Expand Down
Loading