Showing
2 changed files
with
9 additions
and
0 deletions
... | ... | @@ -60,6 +60,14 @@ def create_fake_date(): |
60 | 60 | return get_now().isoformat() |
61 | 61 | |
62 | 62 | |
63 | +def create_fake_period(days=0, hours=0, minutes=0): | |
64 | + data = { | |
65 | + "startDate": get_now().isoformat(), | |
66 | + "endDate": (get_now() + timedelta(days=days, hours=hours, minutes=minutes)).isoformat() | |
67 | + } | |
68 | + return data | |
69 | + | |
70 | + | |
63 | 71 | def subtraction(value1, value2): |
64 | 72 | if "." in str (value1) or "." in str (value2): |
65 | 73 | return (float (value1) - float (value2)) | ... | ... |
Please
register
or
login
to post a comment