Skip to content

Releases: Petro31/easy-time-jinja

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

1.0.8.1

26 May 18:58
Compare
Choose a tag to compare

New Language

  • Croatian

1.0.8

06 May 11:49
Compare
Choose a tag to compare

New Features

  • Time between macros

New Languages

  • Portuguese

1.0.7

25 Apr 22:24
Compare
Choose a tag to compare

New Features

  • clock icon macro
  • days away counter (integer)
  • days away counter (speach)

New Languages

  • Italian

Fixes

  • Fixed issue with past French relative times
  • Various fixes and improvements

1.0.6

14 Apr 17:33
76c9122
Compare
Choose a tag to compare

New Features

  • Add a max period to easy_time, big_time, easy_relative_time, big_relative_time
  • Add input_datetime time only helpers
  • Added assumptions about calendar entities with easy and relative time macros

Bug Fixes & Other

  • Refactored the brains to pave the way towards timedeltas, duration sensors, timedelta formatting, countdowns, and differences between 2 'time' inputs.

1.0.5.2

14 Apr 12:00
Compare
Choose a tag to compare

Fixes

  • Adds Spanish
  • Fixes clock()

1.0.5.1

11 Apr 21:47
Compare
Choose a tag to compare

New Languages

  • French