Skip to content

Releases: Petro31/easy-time-jinja

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

1.0.9.2

30 Oct 11:42
4e9c50d
Compare
Choose a tag to compare

New language

  • Slavic

1.0.9.1

08 Sep 13:40
32ae5c0
Compare
Choose a tag to compare

New Languages

  • Norwegian bokmål
  • Norwegian nynorsk

1.0.9

21 Jun 14:17
Compare
Choose a tag to compare

Fixes

  • Fixes an issue with utc true/false flag on all functions that have it.
  • Fixes an issue with last_day_in_month.
  • Update documents to reflect correct function calls.

New languages

  • Polish