time-machine icon indicating copy to clipboard operation
time-machine copied to clipboard

freeze numpy datetimes

Open wimglenn opened this issue 3 years ago • 1 comments

Description

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

wimglenn avatar Oct 20 '22 19:10 wimglenn

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.

adamchainz avatar Oct 31 '22 17:10 adamchainz