Can I be blind or limited to find a smart solution, but I would like to extract the time for the numpy.datetime64 object and cannot find the obvious solution.
Of course I can do this:
import numpy as np
a = np.datetime64('2015-03-23T22:58')
print(a.tolist().time())
But that still leaves me with a timezone problem.
Also, I just have nothing to use numpy.datetime64 to convert it to datetime and use these methods. Or numpy.datetime64 lacks some basic functions / I do not use it for its intended purpose, and is it better to return to datetime.datetime?
source
share