https://pypi.org/project/time_str/1.0.0/
What's changed
Added
parse_interval
shortcut function.- Type hints
max_unit
kwarg toIntervalConverter
constructor andparse_interval
function.- New precise methods to
IntervalConverter
for precise conversions:
timedelta_precise()
anddatetime_precise()
. - New
IntervalConverter.datetime_relative()
shortcut method.
Changed
- Renamed
Converter
toIntervalConverter
. input_string
attribute ofIntervalConverter
is now a read-only property.IntervalConverter.convert()
is nowIntervalConverter.timedelta_relative()
.- Dropped support for python 3.6
Removed
time_str.convert
shortcut function.converted_string
,split_string
,pattern
,raw_output
andoutput
attributes of
IntervalConverter
have been removed or are now private.
Full Changelog: v0.1.1...v1.0.0