Releases: Petro31/easy-time-jinja
Releases · Petro31/easy-time-jinja
2.1.0.2
2.1.0.1
2.1.0
New Features
- 2 new macros:
- hour - translates hour of the day, e.g. midnight -> 1, 2... etc -> noon, -> 13, 14 etc
- clock_phrase - translates the current time to a long phrase, e.g. half past 11, or quarter to 10, etc.
- month and weekday now support entity_id's as inputs.
Bug Fixes
- Fixed an issue with speak_the_days returning the wrong day when the value is in the past.
- Fixed an issue with easy_relative_time using
now()
2.0.0.3
2.0.0.2
2.0.0.1
2.0.0
New Features
- All _time and _between macros now support a new argument,
short
. Settingshort=True
in these macros will output abbreviated times. E.g.12hr 53min
. #22 easy_time
,easy_relative_time
, andeasy_time_between
now round by default. Usefloor=True
to get back old functionality. #21month
andweekday
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