Answers for "python convert np datetime to string"

0

python convert np datetime to string

# You can use Numpy's datetime_as_string function.
# The unit='D' argument specifies the precision, in this case days.

t = numpy.datetime64('2012-06-30T20:00:00.000000000-0400')
numpy.datetime_as_string(t, unit='D')
Posted by: Guest on May-01-2022

Code answers related to "python convert np datetime to string"

Python Answers by Framework

Browse Popular Code Answers by Language