Skip to content

2.0.0

Compare
Choose a tag to compare
@Petro31 Petro31 released this 18 Nov 17:06
· 20 commits to main since this release

New Features

  • All _time and _between macros now support a new argument, short. Setting short=True in these macros will output abbreviated times. E.g. 12hr 53min. #22
  • easy_time, easy_relative_time, and easy_time_between now round by default. Use floor=True to get back old functionality. #21
  • month and weekday now support datetime objects as inputs. #24

Bug Fixes

  • Fixed an issue with count_the_days returning a carriage return with the numerical day. Fixes #23 and #17.

Optimizations

  • Translations should be faster.
  • All functions were optimized.
  • Reduced number of loops required to generate easy times.
  • Removed type conversions which slowed all _time and _between macros
  • Removed large memory footprint for phrase generation