diff options
author | Kasia <kati.leszek@gmail.com> | 2021-05-09 15:56:35 +0000 |
---|---|---|
committer | Kasia <kati.leszek@gmail.com> | 2021-05-09 15:56:35 +0000 |
commit | 00aea7a1dec6a7a4e03d9e92c41683be4ace4d9f (patch) | |
tree | 346b334c7ffd72a045a7f37cf1fd452dac930d55 /doc/source/reference | |
parent | 353cb87cc42f8623cca76bdce6dbec84e4abfd17 (diff) | |
download | numpy-00aea7a1dec6a7a4e03d9e92c41683be4ace4d9f.tar.gz |
DOC resolves #14299 rephrasing
Diffstat (limited to 'doc/source/reference')
-rw-r--r-- | doc/source/reference/arrays.datetime.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/source/reference/arrays.datetime.rst b/doc/source/reference/arrays.datetime.rst index 2bdbc2bfa..e3b8d270d 100644 --- a/doc/source/reference/arrays.datetime.rst +++ b/doc/source/reference/arrays.datetime.rst @@ -17,8 +17,9 @@ included in Python. Basic Datetimes =============== -The most basic way to create datetimes is from strings in -ISO 8601 date, datetime format or from integer to UNIX time. +The most basic way to create datetimes is from strings in ISO 8601 date +or datetime format. It is also possible to create datetimes from an integer by +offset relative to the Unix epoch (00:00:00 UTC on 1 January 1970). The unit for internal storage is automatically selected from the form of the string, and can be either a :ref:`date unit <arrays.dtypes.dateunits>` or a :ref:`time unit <arrays.dtypes.timeunits>`. The date units are years ('Y'), @@ -35,7 +36,7 @@ letters, for a "Not A Time" value. >>> np.datetime64('2005-02-25') numpy.datetime64('2005-02-25') - UNIX time, by providing integer and a date unit: + From an integer and a date unit, 1 year since the UNIX epoch: >>> np.datetime64(1, 'Y') numpy.datetime64('1971') |