You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
243 lines
4.8 KiB
243 lines
4.8 KiB
1 year ago
|
---
|
||
|
test case: 2020-09-01 00:00:00 +03:00 + 1h
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-09-01 00:00:00 +03:00
|
||
|
param: 1h
|
||
|
out:
|
||
|
time: 2020-09-01 01:00:00 +03:00
|
||
|
---
|
||
|
test case: 2020-09-01 23:00:00 +03:00 + 1h
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-09-01 23:00:00 +03:00
|
||
|
param: 1h
|
||
|
out:
|
||
|
time: 2020-09-02 00:00:00 +03:00
|
||
|
---
|
||
|
test case: 2020-09-01 00:00:00 +03:00 + 10h
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-09-01 00:00:00 +03:00
|
||
|
param: 10h
|
||
|
out:
|
||
|
time: 2020-09-01 10:00:00 +03:00
|
||
|
---
|
||
|
test case: 2020-09-01 00:00:00 +03:00 + 24h
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-09-01 00:00:00 +03:00
|
||
|
param: 24h
|
||
|
out:
|
||
|
time: 2020-09-02 00:00:00 +03:00
|
||
|
---
|
||
|
test case: 2020-09-01 00:00:00 +03:00 + 720h
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-09-01 00:00:00 +03:00
|
||
|
param: 720h
|
||
|
out:
|
||
|
time: 2020-10-01 00:00:00 +03:00
|
||
|
---
|
||
|
test case: 2020-09-01 00:00:00 +03:00 + 1440h
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-09-01 00:00:00 +03:00
|
||
|
param: 1440h
|
||
|
out:
|
||
|
time: 2020-10-31 00:00:00 +02:00
|
||
|
---
|
||
|
test case: 2020-10-25 03:00:00 +03:00 + 1h
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-10-25 03:00:00 +03:00
|
||
|
param: 1h
|
||
|
out:
|
||
|
time: 2020-10-25 04:00:00 +02:00
|
||
|
---
|
||
|
test case: 2020-03-29 02:00:00 +02:00 + 1h
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-03-29 02:00:00 +02:00
|
||
|
param: 1h
|
||
|
out:
|
||
|
time: 2020-03-29 03:00:00 +03:00
|
||
|
---
|
||
|
test case: 2020-09-01 00:00:00 +03:00 + 8760h
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-09-01 00:00:00 +03:00
|
||
|
param: 8760h
|
||
|
out:
|
||
|
time: 2021-09-01 00:00:00 +03:00
|
||
|
---
|
||
|
test case: 2019-09-01 00:00:00 +03:00 + 8784h
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2019-09-01 00:00:00 +03:00
|
||
|
param: 8784h
|
||
|
out:
|
||
|
time: 2020-09-01 00:00:00 +03:00
|
||
|
---
|
||
|
test case: 2020-09-01 00:00:00 +03:00 + 1d
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-09-01 00:00:00 +03:00
|
||
|
param: 1d
|
||
|
out:
|
||
|
time: 2020-09-02 00:00:00 +03:00
|
||
|
---
|
||
|
test case: 2020-09-01 00:00:00 +03:00 + 10d
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-09-01 00:00:00 +03:00
|
||
|
param: 10d
|
||
|
out:
|
||
|
time: 2020-09-11 00:00:00 +03:00
|
||
|
---
|
||
|
test case: 2020-10-25 00:00:00 +03:00 + 1d
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-10-25 00:00:00 +03:00
|
||
|
param: 1d
|
||
|
out:
|
||
|
time: 2020-10-26 00:00:00 +02:00
|
||
|
---
|
||
|
test case: 2020-09-01 00:00:00 +03:00 + 365d
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-09-01 00:00:00 +03:00
|
||
|
param: 365d
|
||
|
out:
|
||
|
time: 2021-09-01 00:00:00 +03:00
|
||
|
---
|
||
|
test case: 2019-09-01 00:00:00 +03:00 + 366d
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2019-09-01 00:00:00 +03:00
|
||
|
param: 366d
|
||
|
out:
|
||
|
time: 2020-09-01 00:00:00 +03:00
|
||
|
---
|
||
|
test case: 2020-09-01 00:00:00 +03:00 + 1w
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-09-01 00:00:00 +03:00
|
||
|
param: 1w
|
||
|
out:
|
||
|
time: 2020-09-08 00:00:00 +03:00
|
||
|
---
|
||
|
test case: 2020-09-01 00:00:00 +03:00 + 1M
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-09-01 00:00:00 +03:00
|
||
|
param: 1M
|
||
|
out:
|
||
|
time: 2020-10-01 00:00:00 +03:00
|
||
|
---
|
||
|
test case: 2020-09-01 00:00:00 +03:00 + 2M
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-09-01 00:00:00 +03:00
|
||
|
param: 2M
|
||
|
out:
|
||
|
time: 2020-11-01 00:00:00 +02:00
|
||
|
---
|
||
|
test case: 2020-09-01 00:00:00 +03:00 + 1y
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-09-01 00:00:00 +03:00
|
||
|
param: 1y
|
||
|
out:
|
||
|
time: 2021-09-01 00:00:00 +03:00
|
||
|
---
|
||
|
test case: 2020-12-31 23:00:00 +02:00 + 1h
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-12-31 23:00:00 +02:00
|
||
|
param: 1h
|
||
|
out:
|
||
|
time: 2021-01-01 00:00:00 +02:00
|
||
|
---
|
||
|
test case: 2020-01-29 00:00:00 +00:00 + 1d
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-01-29 00:00:00 +00:00
|
||
|
param: 1d
|
||
|
out:
|
||
|
time: 2020-01-30 00:00:00 +00:00
|
||
|
---
|
||
|
test case: 2020-09-01 00:00:00 +03:00 + 1m
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-09-01 00:00:00 +03:00
|
||
|
param: 1m
|
||
|
out:
|
||
|
time: 2020-09-01 00:01:00 +03:00
|
||
|
---
|
||
|
test case: 2020-09-01 00:59:00 +03:00 + 1m
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-09-01 00:59:00 +03:00
|
||
|
param: 1m
|
||
|
out:
|
||
|
time: 2020-09-01 01:00:00 +03:00
|
||
|
---
|
||
|
test case: 2020-03-29 02:59:00 +02:00 + 1m
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-03-29 02:59:00 +02:00
|
||
|
param: 1m
|
||
|
out:
|
||
|
time: 2020-03-29 03:00:00 +03:00
|
||
|
---
|
||
|
test case: 2020-09-01 00:00:00 +03:00 + 1s
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-09-01 00:00:00 +03:00
|
||
|
param: 1s
|
||
|
out:
|
||
|
time: 2020-09-01 00:00:01 +03:00
|
||
|
---
|
||
|
test case: 2020-09-01 00:00:59 +03:00 + 1s
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-09-01 00:00:59 +03:00
|
||
|
param: 1s
|
||
|
out:
|
||
|
time: 2020-09-01 00:01:00 +03:00
|
||
|
---
|
||
|
test case: 2020-03-29 02:59:59 +02:00 + 1s
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-03-29 02:59:59 +02:00
|
||
|
param: 1s
|
||
|
out:
|
||
|
time: 2020-03-29 03:00:00 +03:00
|
||
|
---
|
||
|
test case: 2019-01-31 03:00:00 +02:00 + 1M
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2019-01-31 03:00:00 +02:00
|
||
|
param: 1M
|
||
|
out:
|
||
|
time: 2019-02-28 03:00:00 +02:00
|
||
|
---
|
||
|
test case: 2019-01-31 03:00:00 +02:00 + 13M
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2019-01-31 03:00:00 +02:00
|
||
|
param: 13M
|
||
|
out:
|
||
|
time: 2020-02-29 03:00:00 +02:00
|
||
|
---
|
||
|
test case: 2020-02-29 03:00:00 +02:00 + 1y
|
||
|
in:
|
||
|
timezone: :Europe/Riga
|
||
|
time: 2020-02-29 03:00:00 +02:00
|
||
|
param: 1y
|
||
|
out:
|
||
|
time: 2021-02-28 03:00:00 +02:00
|
||
|
...
|
||
|
|