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.
258 lines
5.1 KiB
258 lines
5.1 KiB
---
|
|
test case: 2020-09-01 12:00:00 +03:00 - 1h
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2020-09-01 12:00:00 +03:00
|
|
param: 1h
|
|
out:
|
|
time: 2020-09-01 11:00:00 +03:00
|
|
---
|
|
test case: 2020-09-01 12:00:00 +03:00 - 12h
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2020-09-01 12:00:00 +03:00
|
|
param: 12h
|
|
out:
|
|
time: 2020-09-01 00:00:00 +03:00
|
|
---
|
|
test case: 2020-09-01 12:00:00 +03:00 - 13h
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2020-09-01 12:00:00 +03:00
|
|
param: 13h
|
|
out:
|
|
time: 2020-08-31 23:00:00 +03:00
|
|
---
|
|
test case: 2020-03-01 12:00:00 +02:00 - 24h
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2020-03-01 12:00:00 +02:00
|
|
param: 24h
|
|
out:
|
|
time: 2020-02-29 12:00:00 +02:00
|
|
---
|
|
test case: 2020-03-02 00:00:00 +02:00 - 24h
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2020-03-02 00:00:00 +02:00
|
|
param: 24h
|
|
out:
|
|
time: 2020-03-01 00:00:00 +02:00
|
|
---
|
|
test case: 2020-09-01 12:00:00 +03:00 - 720h
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2020-09-01 12:00:00 +03:00
|
|
param: 720h
|
|
out:
|
|
time: 2020-08-02 12:00:00 +03:00
|
|
---
|
|
test case: 2019-09-01 00:00:00 +03:00 - 8760h
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2019-09-01 00:00:00 +03:00
|
|
param: 8760h
|
|
out:
|
|
time: 2018-09-01 00:00:00 +03:00
|
|
---
|
|
test case: 2020-09-01 00:00:00 +03:00 - 8784h
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2020-09-01 00:00:00 +03:00
|
|
param: 8784h
|
|
out:
|
|
time: 2019-09-01 00:00:00 +03:00
|
|
---
|
|
test case: 2020-10-25 12:00:00 +02:00 - 24h
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2020-10-25 12:00:00 +02:00
|
|
param: 24h
|
|
out:
|
|
time: 2020-10-24 12:00:00 +03:00
|
|
---
|
|
test case: 2020-10-25 03:00:00 +02:00 - 1h
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2020-10-25 03:00:00 +02:00
|
|
param: 1h
|
|
out:
|
|
time: 2020-10-25 02:00:00 +03:00
|
|
---
|
|
test case: 2020-03-29 12:00:00 +03:00 - 24h
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2020-03-29 12:00:00 +03:00
|
|
param: 24h
|
|
out:
|
|
time: 2020-03-28 12:00:00 +02:00
|
|
---
|
|
test case: 2020-03-29 03:00:00 +03:00 - 1h
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2020-03-29 04:00:00 +03:00
|
|
param: 1h
|
|
out:
|
|
time: 2020-03-29 03:00:00 +02:00
|
|
---
|
|
test case: 2020-09-02 00:00:00 +03:00 - 1d
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2020-09-02 00:00:00 +03:00
|
|
param: 1d
|
|
out:
|
|
time: 2020-09-01 00:00:00 +03:00
|
|
---
|
|
test case: 2020-09-30 00:00:00 +03:00 - 10d
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2020-09-30 00:00:00 +03:00
|
|
param: 10d
|
|
out:
|
|
time: 2020-09-20 00:00:00 +03:00
|
|
---
|
|
test case: 2020-10-26 00:00:00 +02:00 - 1d
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2020-10-26 00:00:00 +02:00
|
|
param: 1d
|
|
out:
|
|
time: 2020-10-25 00:00:00 +03:00
|
|
---
|
|
test case: 2020-09-01 00:00:00 +03:00 - 366d
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2020-09-01 00:00:00 +03:00
|
|
param: 366d
|
|
out:
|
|
time: 2019-09-01 00:00:00 +03:00
|
|
---
|
|
test case: 2019-09-01 00:00:00 +03:00 - 365d
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2019-09-01 00:00:00 +03:00
|
|
param: 365d
|
|
out:
|
|
time: 2018-09-01 00:00:00 +03:00
|
|
---
|
|
test case: 2020-09-10 00:00:00 +03:00 - 1w
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2020-09-10 00:00:00 +03:00
|
|
param: 1w
|
|
out:
|
|
time: 2020-09-03 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-08-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-07-01 00:00:00 +03: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: 2019-09-01 00:00:00 +03:00
|
|
---
|
|
test case: 2020-01-01 00:00:00 +02:00 - 1h
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2020-01-01 00:00:00 +02:00
|
|
param: 1h
|
|
out:
|
|
time: 2019-12-31 23:00:00 +02:00
|
|
---
|
|
test case: 2020-09-01 12:00:00 +03:00 - 1m
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2020-09-01 12:00:00 +03:00
|
|
param: 1m
|
|
out:
|
|
time: 2020-09-01 11:59:00 +03:00
|
|
---
|
|
test case: 2020-10-25 03:00:00 +02:00 - 1m
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2020-10-25 03:00:00 +02:00
|
|
param: 1m
|
|
out:
|
|
time: 2020-10-25 02:59:00 +03:00
|
|
---
|
|
test case: 2020-09-01 12:00:00 +03:00 - 1s
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2020-09-01 12:00:00 +03:00
|
|
param: 1s
|
|
out:
|
|
time: 2020-09-01 11:59:59 +03:00
|
|
---
|
|
test case: 2020-10-25 03:00:00 +02:00 - 1s
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2020-10-25 03:00:00 +02:00
|
|
param: 1s
|
|
out:
|
|
time: 2020-10-25 02:59:59 +03:00
|
|
---
|
|
test case: 2021-11-09 03:00:00 +02:00 - 1i
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2021-11-09 03:00:00 +02:00
|
|
param: 1i
|
|
out:
|
|
time: 2020-11-03 03:00:00 +02:00
|
|
---
|
|
test case: 2020-12-30 03:00:00 +02:00 - 1i
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2020-12-30 03:00:00 +02:00
|
|
param: 1i
|
|
out:
|
|
time: 2019-12-25 03:00:00 +02:00
|
|
---
|
|
test case: 2021-01-04 03:00:00 +02:00 - 1i
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2021-01-04 03:00:00 +02:00
|
|
param: 1i
|
|
out:
|
|
time: 2019-12-30 03:00:00 +02:00
|
|
---
|
|
test case: 2021-03-31 03:00:00 +03:00 - 1M
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2021-03-31 03:00:00 +03:00
|
|
param: 1M
|
|
out:
|
|
time: 2021-02-28 03:00:00 +02:00
|
|
---
|
|
test case: 2021-03-31 03:00:00 +03:00 - 13M
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2021-03-31 03:00:00 +03:00
|
|
param: 13M
|
|
out:
|
|
time: 2020-02-29 03:00:00 +02:00
|
|
---
|
|
test case: 2020-02-29 03:00:00 +03:00 - 1y
|
|
in:
|
|
timezone: :Europe/Riga
|
|
time: 2020-02-29 03:00:00 +02:00
|
|
param: 1y
|
|
out:
|
|
time: 2019-02-28 03:00:00 +02:00
|
|
...
|