Mark Jarvis
Mark Jarvis
Timezones and summer time in particular is very irritating - especially when you assume a day is 24 hours but then it's 23 or 25 as summertime changes! In other...
As yes, I see it only appears twice. So could the `pytz` bits just be switched for `datetime.tzinfo` stuff, or equivelent from `tzlocal` and be done with it?
The quick and dirty way I capture the system local timezone is with `datetime.datetime.now().astimezone().tzinfo` but I think that only works on Python 3.6 onwards. With a tweak it can work...
Those charts dont actually have the summer time change in which was 1am-2am on Sunday 28th 2021 (Last sunday of March). In other work, sometimes I found that spring change...
possibly fixed by my proposed changes in pull request #90 as a negative multiplier could be used
Documentation has been added. The use case is where the input number or sensor being used is simply in pence rather than pounds which is what the underlying rates are...