Skip to content

Releases: Petro31/easy-time-jinja

2.1.1.2

29 Dec 18:59
Compare
Choose a tag to compare

Fixed time between macros to account for daylight savings transitions.

2.1.1.1

29 Dec 12:01
a4ee003
Compare
Choose a tag to compare

Fix typo

2.1.1

28 Dec 15:23
Compare
Choose a tag to compare

New Features

  • Month and Weekday macros now support short versions e.g. Dec for December.

New Languages

  • Chinese (Simplified)

Bug Fixes

  • Fixed NL clock phrase macro to match proper language phrases.

2.1.0.2

15 Oct 20:50
Compare
Choose a tag to compare

Fixes: #42

Adds translation to spanish for clock_phrase

2.1.0.1

14 Oct 21:10
Compare
Choose a tag to compare

Fix German relative time phrase

2.1.0

14 Oct 21:01
Compare
Choose a tag to compare

New Features

  • 2 new macros:
    1. hour - translates hour of the day, e.g. midnight -> 1, 2... etc -> noon, -> 13, 14 etc
    2. 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

20 Nov 11:53
Compare
Choose a tag to compare

Fixes

  • Fixed typo

2.0.0.2

20 Nov 11:49
Compare
Choose a tag to compare

Fixes

  • Fixed issue w/ plural & singular phrases for chosen values.

2.0.0.1

20 Nov 11:43
Compare
Choose a tag to compare

Fixes

  • Fixed minor issue with .0 appearing on some outputs.

2.0.0

18 Nov 17:06
Compare
Choose a tag to compare

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