当然是 9 月 30 号开始啊。
>>> import arrow
>>> arrow.get("2015-09-30 00:00:00")
<Arrow [2015-09-30T00:00:00+00:00]>
>>> arrow.get("2015-09-30 24:00:00")
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
arrow.get("2015-09-30 24:00:00")
File "C:\Python27\lib\site-packages\arrow\
api.py", line 23, in get
return _factory.get(*args, **kwargs)
File "C:\Python27\lib\site-packages\arrow\
factory.py", line 161, in get
dt = parser.DateTimeParser(locale).parse_iso(arg)
File "C:\Python27\lib\site-packages\arrow\
parser.py", line 106, in parse_iso
return self._parse_multiformat(string, formats)
File "C:\Python27\lib\site-packages\arrow\
parser.py", line 252, in _parse_multiformat
raise ParserError('Could not match input to any of {0} on \'{1}\''.format(formats, string))
ParserError: Could not match input to any of [u'YYYY-MM-DD HH:mm:ss'] on '2015-09-30 24:00:00'
>>>