Skip to content

v2.0.0 🚨 CONTAINS BREAKING CHANGES 🚨

Choose a tag to compare

@TheFes TheFes released this 22 Mar 21:20
4856369

🚨 WARNING: THIS RELEASE CONTAINS BREAKING CHANGES 🚨

@Pipo31416 Suggested a round paramter in #39. I thought this was a great suggestion, but decided to implement it differently, causing an almost complete rewrite of the macro. So that's why I named this release 2.0.0 :)

🚨 BREAKING CHANGES

  • The parameters month, week and millisecond are removed. They can be set by adding these time parts to the not_use parameter
  • The parameter verbose is removed. It was doing the exact opposite of the parameter name, and was already replaced by the abbr parameter some time ago

🌟 IMPROVEMENTS

  • a new parameter round_mode has been added. By default this is set to "floor" meaning it will round the last shown time part down. Other options are "ceil" (always round up) and "common" which will round up if the remaining timedelta is 0.5 or more of the last shown time part. (eg 30 minutes or more if the last shown time part is hour).
  • you can use "all" for the show_all parameter to show all time parts. The time parts set in the not_use parameter will be leading, so eg always_show='all', not_show='day' will show all time parts (even when they are 0) expect for the days.

πŸ› BUG FIXES

  • the time parts set in always_show would not always be shown

What's Changed

Full Changelog: v1.3.2...v1.4.0