Skip to content
New issue

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

freeze numpy datetimes #294

Open
wimglenn opened this issue Oct 20, 2022 · 1 comment
Open

freeze numpy datetimes #294

wimglenn opened this issue Oct 20, 2022 · 1 comment

Comments

@wimglenn
Copy link
Contributor

Description

>>> with time_machine.travel("1970-01-01"):
...     print(np.datetime64("now"))
... 
2022-10-20T19:12:38
@adamchainz
Copy link
Owner

This needs some research into which function inside numpy reads the clock. If it’s something completely custom, it may be unfeasible to patch it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants