- Add a tzinfos mapping and parse method for easy datetime parsing with timezone support.
- Removed dependency on pytz. (#29)
- In utc.now(), bind late to allow for monkeypatching. (#31)
- Remove test dependency on backports.unittest_mock. (#26)
- Stopwatch now uses
time.monotonic
.
- Require Python 3.8 or later.
#24: Removed use of datetime.utc**
functions
deprecated in Python 3.12.
#22: Fixed bug in tests that would fail when a leap year was about a year away.
#21: Restored dependency on jaraco.functools
, still
used in timing module.
Remove dependency on jaraco.functools.
Packaging refresh.
Introduced infer_datetime
and added some type hints.
- Refreshed project.
- Enrolled with Tidelift.
- Refreshed project.
- Removed deprecated
divide_*
functions andParser
class. - Require Python 3.7 or later.
- #19: Fixed error reporting in parse_timedelta.
- #18: Docs now build without warnings.
- Fixed issue where digits were picked up in the unit when adjacent to the last unit.
- Added support for more formats in
parse_timedelta
. - #17:
parse_timedelta
now supports formats emitted bytimeit
, including honoring nanoseconds at the microsecond resolution.
- Refreshed package metadata.
- Refreshed package metadata.
- Removed
strptime
function in favor of datetime.datetime.strptime. If passing atzinfo
parameter, instead invoke .replace(tzinfo=...) on the result. - Deprecated
divide_timedelta
anddivide_timedelta_float
now that Python supports this functionality natively. - Deprecated
Parser
class. The dateutil.parser provides more sophistication.
- #10:
strftime
now reverts to the stdlib behavior for%u
. Use tempora 2.1 or later and the%µ
for microseconds.
- #8: Fixed error in
PeriodicCommandFixedDelay.daily_at
when timezone is more than 12 hours from UTC.
- #9: Fixed error when date object is passed to
strftime
. - #11:
strftime
now honors upstream expectation of rendering date values on time objects and vice versa. - #10:
strftime
now honors%µ
for rendering just the "microseconds" as%u
supported previously. In a future, backward-incompatible release, the%u
behavior will revert to the behavior as found in stdlib.
- Require Python 3.6 or later.
- Removed DatetimeConstructor.
#7: Fix failing doctest in parse_timedelta
.
Package refresh, including use of declarative config in the package metadata.
Enhancements to BackoffDelay:
- Added
.reset
method.- Made iterable to retrieve delay values.
Added UTC module (Python 3 only), inspired by the utc project.
- #5: Scheduler now honors daylight savings times in the
- PeriodicCommands.
Added timing.BackoffDelay
, suitable for implementing
exponential backoff delays, such as those between retries.
Added support for months, years to parse_timedelta
.
Introducing timing.Timer
, featuring a expired
method for detecting when a certain duration has been
exceeded.
- #3: Stopwatch now behaves reliably during timezone
- changes and (presumably) daylight savings time changes.
Update project skeleton.
Adopt irc.schedule
as tempora.schedule
.
Adopt jaraco.timing
as tempora.timing
.
Automatic deployment with Travis-CI.
Moved to Github.
Improved test support on Python 2.
Added divide_timedelta from svg.charts
.
Added date_range from svg.charts
.