Andy 5b670c074f
Update [p]economyset slottime&paydaytime to use TimedeltaConverter and not accept negative integers (#4807)
* add a time converter, as well as not allowing negative integers

* timedeltaconverter

* styling and unused imports

* update docstrings

* update param name to "duration" instead of seconds

* make timedelta default_unit seconds

* better descriptions & docstrings

* docs for updated paydaytime & slottime

* Fix style

* Few minor fixes

* Cast `total_seconds()` return type to `int`

* Fix one of my own issues

* Make the duration argument catch-rest for convenience

* One more fix for the docs

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
2021-02-15 22:25:03 +01:00
..
2020-02-19 03:24:28 -05:00
2020-10-18 08:52:56 +01:00
2021-01-01 19:33:48 +01:00
2021-01-16 02:10:45 +00:00
2019-10-03 12:47:46 -04:00
2020-08-13 05:12:58 -04:00
2020-10-27 20:21:14 +01:00