Report generated 11-04-2023 10:42

SDATE Function

  Sdate   Date Time   Windows   Relative Date

The time addition

Scenario Outline

Given the date <start date>
When relative delta <relative delta> is applied
Then the relative date should be <relative date>

Examples: 

# Description Start Date Relative Delta Relative Date
1 next hour 2021-10-20T16:10:59 hours=+1 2021-10-20T17:10:59
2 last hour 2021-10-20T16:10:59 hours=-1 2021-10-20T15:10:59
3 next ten hours 2021-10-20T16:10:59 hours=+10 2021-10-21T02:10:59
4 next 24 hours 2021-10-20T16:10:59 hours=+24 2021-10-21T16:10:59
5 next hour and ten minutes 2021-10-20T16:10:59 hours=+1, minutes=+10 2021-10-20T17:20:59
6 next 60 minutes 2021-10-20T16:10:59 minutes=+60 2021-10-20T17:10:59
7 next second 2021-10-20T16:10:59 seconds=+1 2021-10-20T16:11:00
8 next day, plus one hour 2021-10-20T16:10:59 days=+1, hours=+1 2021-10-21T17:10:59
9 one day after one month, plus one hour 2021-10-20T16:10:59 months=+1, days=+1, hours=+1 2021-11-21T17:10:59
10 one day after one month, plus one hour 2021-01-31T16:10:59 months=+1, days=+1, hours=+1 2021-03-01T17:10:59
Steps Outcome
SUCCESS 018ms
SUCCESS 040ms
SUCCESS 029ms
SUCCESS 033ms
SUCCESS 035ms
SUCCESS 024ms
SUCCESS 021ms
SUCCESS 022ms
SUCCESS 015ms
SUCCESS 017ms
SUCCESS 0.31s
Serenity BDD version 3.6.22