mirror of
https://github.com/pocketpy/pocketpy
synced 2025-11-08 20:50:16 +00:00
Create 100_datetime.py
This commit is contained in:
parent
21977a3a8e
commit
aa4d2c3838
13
tests/100_datetime.py
Normal file
13
tests/100_datetime.py
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
import datetime
|
||||||
|
|
||||||
|
delta = datetime.timedelta(
|
||||||
|
days=50,
|
||||||
|
seconds=27,
|
||||||
|
microseconds=10,
|
||||||
|
milliseconds=29000,
|
||||||
|
minutes=5,
|
||||||
|
hours=8,
|
||||||
|
weeks=2
|
||||||
|
)
|
||||||
|
|
||||||
|
assert(str(delta) == 'datetime.timedelta(days=64, seconds=29156, microseconds=10')
|
||||||
Loading…
x
Reference in New Issue
Block a user