mirror of
https://github.com/pocketpy/pocketpy
synced 2025-11-10 13:40:16 +00:00
remove \ 70_datetime.py
Remove line continuation character(\), which is not currently supported
This commit is contained in:
parent
6641018214
commit
b71e3e1e74
@ -27,19 +27,15 @@ time.max = time(23, 59, 59, 999999)
|
|||||||
time.resolution = timedelta(microseconds=1)
|
time.resolution = timedelta(microseconds=1)
|
||||||
|
|
||||||
|
|
||||||
assert '12:34' == \
|
assert '12:34' == str(time(hour=12, minute=34, second=56, microsecond=123456).isoformat(timespec='minutes'))
|
||||||
str(time(hour=12, minute=34, second=56, microsecond=123456).isoformat(timespec='minutes'))
|
|
||||||
|
|
||||||
tm = time(hour=12, minute=34, second=56, microsecond=0)
|
tm = time(hour=12, minute=34, second=56, microsecond=0)
|
||||||
assert '12:34:56.000000' == str(tm.isoformat(timespec='microseconds'))
|
assert '12:34:56.000000' == str(tm.isoformat(timespec='microseconds'))
|
||||||
|
|
||||||
assert '12:34:56' == str(tm.isoformat(timespec='auto'))
|
assert '12:34:56' == str(tm.isoformat(timespec='auto'))
|
||||||
|
|
||||||
assert 'datetime.datetime(2011, 11, 4)' \
|
assert 'datetime.datetime(2011, 11, 4)' == str(datetime.fromisoformat('2011-11-04'))
|
||||||
== str(datetime.fromisoformat('2011-11-04'))
|
|
||||||
|
|
||||||
assert 'datetime.datetime(2011, 11, 4)' \
|
assert 'datetime.datetime(2011, 11, 4)' == str(datetime.fromisoformat('20111104'))
|
||||||
== str(datetime.fromisoformat('20111104'))
|
|
||||||
|
|
||||||
assert 'datetime.datetime(2011, 11, 12)' \
|
assert 'datetime.datetime(2011, 11, 12)' == str(datetime.fromisoformat('2011-11-12'))
|
||||||
== str(datetime.fromisoformat('2011-11-12'))
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user