What are the expected results?
All of those results seem to be off by 1 day by my understanding.
Yesterday is the day before today, which from the perspective of 2022-08-01 is 2022-07-31, not 2022-07-30. Also in the same context I'd consider 2022-07-29 to be 3 days ago, though that one feels a bit more open to interpretation.
If you are certain this is a bug in Timex, do you have references I
can use to check the algorithm/logic against? For instance, a well-established
date/time library in another language, a paper, test suite, etc. It is by no
means a requirement, but is immensely helpful in fixing bugs, and provides me
extra data to use when building out the test suite
Steps to reproduce
timex 3.7.8
Description of issue
Yesterday
is the day before today, which from the perspective of2022-08-01
is2022-07-31
, not2022-07-30
. Also in the same context I'd consider2022-07-29
to be3 days ago
, though that one feels a bit more open to interpretation.