datetime64 type represents a date and the corresponding time. You need NumPy 1.7.0 or later versions to use this data type.
To get acquainted with
datetime64, follow these steps:
datetime64from a string, as follows:
The preceding line prints the following output:
We created a
datetime64 type for May 21, 2015, using the
YYYY-MM-DD format, where
Y corresponds to the year,
M corresponds to the month, and
D corresponds to the day of the month. NumPy complies with the ISO 8601 standard—an international standard for representing dates and times.
YYYYMMDDformats. Check these ...