-
which doesn't actually do what I would expect it to do. |
Beta Was this translation helpful? Give feedback.
Answered by
kuzmoyev
Feb 25, 2023
Replies: 1 comment 3 replies
-
But your issue is that I understand the confusion for this particular case when you're adding 1 days :) |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
N-Demir
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
BeautifulDate
can only represent "date" object, not datetime. (E.x. tryD.today()
, that'll give youBeautifulDate
).But your issue is that
+ 1 * day
sets theday
to 1.I assume you wanted to add 1 day, so you want to use
+ 1 * days
(note the plural, check the note in the docs).I understand the confusion for this particular case when you're adding 1 days :)