mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Bump tempora from 5.2.1 to 5.5.0 (#2111)
* Bump tempora from 5.2.1 to 5.5.0 Bumps [tempora](https://github.com/jaraco/tempora) from 5.2.1 to 5.5.0. - [Release notes](https://github.com/jaraco/tempora/releases) - [Changelog](https://github.com/jaraco/tempora/blob/main/NEWS.rst) - [Commits](https://github.com/jaraco/tempora/compare/v5.2.1...v5.5.0) --- updated-dependencies: - dependency-name: tempora dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update tempora==5.5.0 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> [skip ci]
This commit is contained in:
parent
9a196f3dca
commit
1e903b164b
10 changed files with 429 additions and 133 deletions
|
@ -383,9 +383,9 @@ def parse_timedelta(str):
|
|||
Note that months and years strict intervals, not aligned
|
||||
to a calendar:
|
||||
|
||||
>>> now = datetime.datetime.now()
|
||||
>>> later = now + parse_timedelta('1 year')
|
||||
>>> diff = later.replace(year=now.year) - now
|
||||
>>> date = datetime.datetime.fromisoformat('2000-01-01')
|
||||
>>> later = date + parse_timedelta('1 year')
|
||||
>>> diff = later.replace(year=date.year) - date
|
||||
>>> diff.seconds
|
||||
20940
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue