diff options
author | Orestis Floros <orestisf1993@gmail.com> | 2018-03-31 02:33:48 +0300 |
---|---|---|
committer | Orestis Floros <orestisf1993@gmail.com> | 2018-03-31 02:33:48 +0300 |
commit | 942f986492f2a77bbac8e8ddfbc4fa480cf1809f (patch) | |
tree | 6ca1e067f0e8663e225a8c4a3a9b2def5951324c /numpy/lib/tests/test_function_base.py | |
parent | 7fd2a3931021fecd00a8c3d98230c2f2bf78bb46 (diff) | |
download | numpy-942f986492f2a77bbac8e8ddfbc4fa480cf1809f.tar.gz |
ENH: datetime64: support AC dates starting with '+'
Numpy allows negatives signs but throws a value error when parsing
datetime strings starting with '+':
>>> np.datetime64('+1000-01-01T00:00:00Z')
ValueError: Error parsing datetime string "+1000-01-01T00:00:00Z" at position 0
Since the default is positive years, we just need to skip the '+'
character.
Fixes #10810.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
0 files changed, 0 insertions, 0 deletions