We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When trying to run the following code:
def ceil_dt(time: datetime, delta: timedelta) -> datetime: return time + (datetime.min - time) % delta @freezetime("2023-10-17 16:27:59") def test(): ceil_dt(datetime.now(), timedelta(minutes = 30)) == datetime(2023, 10, 17, 16, 30, 0)
I get the following error:
TypeError: 'FakeDatetime' object cannot be interpreted as an integer
Seems that this should work as expected since datetime objects wrap integers.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When trying to run the following code:
I get the following error:
Seems that this should work as expected since datetime objects wrap integers.
The text was updated successfully, but these errors were encountered: