How do I get the current date and time using numpy datetime64?
And given a numpy array in which each element is a datetime64 value, how do I get the difference in seconds?
You could also do this to get the current date and time:
import numpy as np
np.datetime64('today') # today's date
np.datetime64('now') # timestamp right now
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With