summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKasia <39829548+katleszek@users.noreply.github.com>2021-05-11 09:22:31 +0200
committerGitHub <noreply@github.com>2021-05-11 09:22:31 +0200
commitb4d52f4fc9b11c7b176fbb33028f0a3fc9cd7edd (patch)
tree2431b473feee91958e460ff83e3915d75c47b95d
parent4fe5a40791258dab9d065d9c8cdeb47d8b25e4ad (diff)
downloadnumpy-b4d52f4fc9b11c7b176fbb33028f0a3fc9cd7edd.tar.gz
Update numpy/core/_add_newdocs_scalars.py
Co-authored-by: Matti Picus <matti.picus@gmail.com>
-rw-r--r--numpy/core/_add_newdocs_scalars.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/_add_newdocs_scalars.py b/numpy/core/_add_newdocs_scalars.py
index b1038f1d0..a02a36ec0 100644
--- a/numpy/core/_add_newdocs_scalars.py
+++ b/numpy/core/_add_newdocs_scalars.py
@@ -218,8 +218,8 @@ add_newdoc_for_scalar_type('void', [],
add_newdoc_for_scalar_type('datetime64', [],
"""
- A datetime is stored as a 64-bit integer.
- If created from integer, counting from ``1970-01-01T00:00:00``.
+ If created from a 64-bit integer, it represents an offset from
+ ``1970-01-01T00:00:00``.
If created from string, shown as ISO 8601 date or datetime format.
>>> np.datetime64(10, 'Y')