8000 DOC: Improve datetime64 docs. by katleszek · Pull Request #18957 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

DOC: Improve datetime64 docs. #18957

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
May 11, 2021
Prev Previous commit
Next Next commit
Update numpy/core/_add_newdocs_scalars.py
Co-authored-by: Matti Picus <matti.picus@gmail.com>
  • Loading branch information
katleszek and mattip authored May 11, 2021
commit b4d52f4fc9b11c7b176fbb33028f0a3fc9cd7edd
4 changes: 2 additions & 2 deletions numpy/core/_add_newdocs_scalars.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ def add_newdoc_for_scalar_type(obj, fixed_aliases, doc):

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')
Expand Down
0