diff options
author | Stephan Hoyer <shoyer@gmail.com> | 2018-03-31 08:09:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-31 08:09:40 -0700 |
commit | 0440fb1a5578643e526d254762eee70e4859fb5d (patch) | |
tree | ed317c8ca40e2e5f1f8a8d1ca7ac259cd6703655 /numpy/core/src | |
parent | 256c6fcd5842c3b9aa897f37c868ba8f0c67b26c (diff) | |
parent | 942f986492f2a77bbac8e8ddfbc4fa480cf1809f (diff) | |
download | numpy-0440fb1a5578643e526d254762eee70e4859fb5d.tar.gz |
Merge pull request #10832 from orestisf1993/issue-10810
ENH: datetime64: support AC dates starting with '+'
Diffstat (limited to 'numpy/core/src')
-rw-r--r-- | numpy/core/src/multiarray/datetime_strings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/datetime_strings.c b/numpy/core/src/multiarray/datetime_strings.c index 96cb66b95..4f9d8fa41 100644 --- a/numpy/core/src/multiarray/datetime_strings.c +++ b/numpy/core/src/multiarray/datetime_strings.c @@ -374,7 +374,7 @@ parse_iso_8601_datetime(char *str, Py_ssize_t len, } /* Leading '-' sign for negative year */ - if (*substr == '-') { + if (*substr == '-' || *substr == '+') { ++substr; --sublen; } |