Skip to content

v1.0.0

Latest
Compare
Choose a tag to compare
@BobDotCom BobDotCom released this 16 Sep 00:17
170d37e

https://pypi.org/project/time_str/1.0.0/

What's changed

Added

  • parse_interval shortcut function.
  • Type hints
  • max_unit kwarg to IntervalConverter constructor and parse_interval function.
  • New precise methods to IntervalConverter for precise conversions:
    timedelta_precise() and datetime_precise().
  • New IntervalConverter.datetime_relative() shortcut method.

Changed

  • Renamed Converter to IntervalConverter.
  • input_string attribute of IntervalConverter is now a read-only property.
  • IntervalConverter.convert() is now IntervalConverter.timedelta_relative().
  • Dropped support for python 3.6

Removed

  • time_str.convert shortcut function.
  • converted_string, split_string, pattern, raw_output and output attributes of
    IntervalConverter have been removed or are now private.

Full Changelog: v0.1.1...v1.0.0