Home > Requirements > Date And Time > Relative Date Time
Report generated 11-04-2023 10:42

Capability: Relative Date Time

  1. Computing relative date or datetime in the future or past (next month, next month plus one week, one month before one year, next year, next Monday, next hour, etc);
  2. Computing the number of years, months, days, hours, minutes, seconds or microseconds between two date(time)s.

Feature Coverage By Scenario

Requirements Overview

Key Statistics

Number of Scenarios 14
Total Number of Test Cases 121
Tests Started Apr 11, 2023 10:42:05
Tests Finished Apr 11, 2023 10:42:09
Total Duration 3s
Fastest Test 14ms
Slowest Test 55ms
Average Execution Time 23ms
Total Execution Time 3s

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 14 Total Duration 3s
Total Number of Test Cases 121 Fastest Test 14ms
Number of Manual Test Cases 0 Slowest Test 55ms
Tests Started Apr 11, 2023 10:42:05 Average Execution Time 23ms
Tests Finished Apr 11, 2023 10:42:09 Total Execution Time 3s

Automated Tests

feature Scenario Context Steps Started Total Duration Result
DATEDIF Function 1: The start date do not involve last day of month
start date=2021-09-20, end date=2021-10-20, relative delta=months=1
windows 3 10:42:05 049ms SUCCESS
DATEDIF Function 2: The start date do not involve last day of month
start date=2021-09-20, end date=2021-10-21, relative delta=months=1, days=1
windows 3 10:42:06 023ms SUCCESS
DATEDIF Function 3: The start date do not involve last day of month
start date=2021-09-20, end date=2021-08-20, relative delta=months=-1
windows 3 10:42:06 020ms SUCCESS
DATEDIF Function 4: The start date do not involve last day of month
start date=2021-09-20, end date=2021-11-20, relative delta=months=2
windows 3 10:42:06 032ms SUCCESS
DATEDIF Function 5: The start date do not involve last day of month
start date=2021-09-20, end date=2021-10-27, relative delta=months=1, days=7
windows 3 10:42:06 024ms SUCCESS
DATEDIF Function 6: The start date do not involve last day of month
start date=2021-09-20, end date=2022-08-20, relative delta=months=11
windows 3 10:42:06 023ms SUCCESS
DATEDIF Function 7: The start date do not involve last day of month
start date=2021-09-20, end date=2022-10-20, relative delta=years=1, months=1
windows 3 10:42:06 020ms SUCCESS
DATEDIF Function 8: The start date do not involve last day of month
start date=2021-09-20, end date=2021-09-30, relative delta=days=10
windows 3 10:42:06 023ms SUCCESS
DATEDIF Function 9: The start date do not involve last day of month
start date=2021-09-20, end date=2021-10-02, relative delta=days=12
windows 3 10:42:06 023ms SUCCESS
DATEDIF Function 1: The start date with 31 as last day
start date=2021-01-31, end date=2021-02-28, relative delta=months=1
windows 3 10:42:06 022ms SUCCESS
DATEDIF Function 2: The start date with 31 as last day
start date=2021-01-30, end date=2021-02-28, relative delta=months=1
windows 3 10:42:06 026ms SUCCESS
DATEDIF Function 3: The start date with 31 as last day
start date=2021-01-29, end date=2021-02-28, relative delta=months=1
windows 3 10:42:06 029ms SUCCESS
DATEDIF Function 4: The start date with 31 as last day
start date=2021-01-28, end date=2021-02-28, relative delta=months=1
windows 3 10:42:06 023ms SUCCESS
DATEDIF Function 5: The start date with 31 as last day
start date=2021-01-27, end date=2021-02-28, relative delta=months=1, days=1
windows 3 10:42:06 027ms SUCCESS
DATEDIF Function 6: The start date with 31 as last day
start date=2021-01-26, end date=2021-02-28, relative delta=months=1, days=2
windows 3 10:42:06 031ms SUCCESS
DATEDIF Function 7: The start date with 31 as last day
start date=2021-01-31, end date=2020-12-31, relative delta=months=-1
windows 3 10:42:06 036ms SUCCESS
DATEDIF Function 8: The start date with 31 as last day
start date=2021-01-31, end date=2021-03-31, relative delta=months=2
windows 3 10:42:06 023ms SUCCESS
DATEDIF Function 9: The start date with 31 as last day
start date=2021-01-31, end date=2021-04-30, relative delta=months=3
windows 3 10:42:06 031ms SUCCESS
DATEDIF Function 10: The start date with 31 as last day
start date=2021-01-31, end date=2021-03-07, relative delta=months=1, days=7
windows 3 10:42:06 028ms SUCCESS
DATEDIF Function 11: The start date with 31 as last day
start date=2021-01-31, end date=2021-12-31, relative delta=months=11
windows 3 10:42:06 027ms SUCCESS
DATEDIF Function 12: The start date with 31 as last day
start date=2021-01-31, end date=2022-02-28, relative delta=years=1, months=1
windows 3 10:42:06 024ms SUCCESS
DATEDIF Function 13: The start date with 31 as last day
start date=2021-01-31, end date=2024-02-29, relative delta=years=3, months=1
windows 3 10:42:06 029ms SUCCESS
DATEDIF Function 14: The start date with 31 as last day
start date=2021-01-31, end date=2021-02-10, relative delta=days=10
windows 3 10:42:06 030ms SUCCESS
DATEDIF Function 1: The start date involve last day of february
start date=2021-02-28, end date=2021-03-28, relative delta=months=1
windows 3 10:42:06 023ms SUCCESS
DATEDIF Function 2: The start date involve last day of february
start date=2021-02-28, end date=2021-03-29, relative delta=months=1, days=1
windows 3 10:42:06 025ms SUCCESS
DATEDIF Function 3: The start date involve last day of february
start date=2021-02-28, end date=2021-03-30, relative delta=months=1, days=2
windows 3 10:42:06 024ms SUCCESS
DATEDIF Function 4: The start date involve last day of february
start date=2021-02-28, end date=2021-03-31, relative delta=months=1, days=3
windows 3 10:42:06 030ms SUCCESS
DATEDIF Function 5: The start date involve last day of february
start date=2021-02-28, end date=2021-01-28, relative delta=months=-1
windows 3 10:42:06 034ms SUCCESS
DATEDIF Function 6: The start date involve last day of february
start date=2021-02-28, end date=2021-04-28, relative delta=months=2
windows 3 10:42:06 035ms SUCCESS
DATEDIF Function 7: The start date involve last day of february
start date=2021-02-28, end date=2021-05-28, relative delta=months=3
windows 3 10:42:06 039ms SUCCESS
DATEDIF Function 8: The start date involve last day of february
start date=2021-02-28, end date=2022-02-28, relative delta=years=1
windows 3 10:42:07 031ms SUCCESS
DATEDIF Function 9: The start date involve last day of february
start date=2021-02-28, end date=2024-02-28, relative delta=years=3
windows 3 10:42:07 029ms SUCCESS
DATEDIF Function 1: The months with different numbers of days
start date=2021-01-27, end date=2021-02-27, relative delta=months=1
windows 3 10:42:07 030ms SUCCESS
DATEDIF Function 2: The months with different numbers of days
start date=2021-01-28, end date=2021-02-28, relative delta=months=1
windows 3 10:42:07 033ms SUCCESS
DATEDIF Function 3: The months with different numbers of days
start date=2021-01-29, end date=2021-02-28, relative delta=months=1
windows 3 10:42:07 035ms SUCCESS
DATEDIF Function 4: The months with different numbers of days
start date=2021-01-30, end date=2021-02-28, relative delta=months=1
windows 3 10:42:07 032ms SUCCESS
DATEDIF Function 5: The months with different numbers of days
start date=2021-01-31, end date=2021-02-28, relative delta=months=1
windows 3 10:42:07 055ms SUCCESS
DATEDIF Function 6: The months with different numbers of days
start date=2021-01-31, end date=2021-03-31, relative delta=months=2
windows 3 10:42:07 030ms SUCCESS
DATEDIF Function 7: The months with different numbers of days
start date=2021-01-31, end date=2021-04-30, relative delta=months=3
windows 3 10:42:07 021ms SUCCESS
DATEDIF Function 8: The months with different numbers of days
start date=2021-01-30, end date=2021-04-30, relative delta=months=3
windows 3 10:42:07 018ms SUCCESS
DATEDIF Function 1: The time substraction
start date=2021-10-20T16:10:59, end date=2021-10-20T17:10:59, relative delta=hours=1
windows 3 10:42:07 018ms SUCCESS
DATEDIF Function 2: The time substraction
start date=2021-10-20T16:10:59, end date=2021-10-20T15:10:59, relative delta=hours=-1
windows 3 10:42:07 018ms SUCCESS
DATEDIF Function 3: The time substraction
start date=2021-10-20T16:10:59, end date=2021-10-21T02:10:59, relative delta=hours=10
windows 3 10:42:07 017ms SUCCESS
DATEDIF Function 4: The time substraction
start date=2021-10-20T16:10:59, end date=2021-10-21T16:10:59, relative delta=days=1
windows 3 10:42:07 023ms SUCCESS
DATEDIF Function 5: The time substraction
start date=2021-10-20T16:10:59, end date=2021-10-20T17:20:59, relative delta=hours=1, minutes=10
windows 3 10:42:07 031ms SUCCESS
DATEDIF Function 6: The time substraction
start date=2021-10-20T16:10:59, end date=2021-10-20T17:10:59, relative delta=hours=1
windows 3 10:42:07 015ms SUCCESS
DATEDIF Function 7: The time substraction
start date=2021-10-20T16:10:59, end date=2021-10-20T16:11:00, relative delta=seconds=1
windows 3 10:42:07 018ms SUCCESS
DATEDIF Function 8: The time substraction
start date=2021-10-20T16:10:59, end date=2021-10-21T17:10:59, relative delta=days=1, hours=1
windows 3 10:42:07 016ms SUCCESS
DATEDIF Function 9: The time substraction
start date=2021-10-20T16:10:59, end date=2021-11-21T17:10:59, relative delta=months=1, days=1, hours=1
windows 3 10:42:07 016ms SUCCESS
DATEDIF Function 10: The time substraction
start date=2021-01-31T16:10:59, end date=2021-03-01T17:10:59, relative delta=months=1, days=1, hours=1
windows 3 10:42:07 020ms SUCCESS
EDATE Function 1: The start date do not involve last day of month
description=next month, start date=2021-09-20, relative delta=months=+1, relative date=2021-10-20
windows 3 10:42:07 033ms SUCCESS
EDATE Function 2: The start date do not involve last day of month
description=last month, start date=2021-09-20, relative delta=months=-1, relative date=2021-08-20
windows 3 10:42:07 029ms SUCCESS
EDATE Function 3: The start date do not involve last day of month
description=next two months, start date=2021-09-20, relative delta=months=+2, relative date=2021-11-20
windows 3 10:42:07 028ms SUCCESS
EDATE Function 4: The start date do not involve last day of month
description=next three months, start date=2021-09-20, relative delta=months=+3, relative date=2021-12-20
windows 3 10:42:07 019ms SUCCESS
EDATE Function 5: The start date do not involve last day of month
description=next four months, start date=2021-09-20, relative delta=months=+4, relative date=2022-01-20
windows 3 10:42:07 020ms SUCCESS
EDATE Function 6: The start date do not involve last day of month
description=next five months, start date=2021-09-20, relative delta=months=+5, relative date=2022-02-20
windows 3 10:42:07 018ms SUCCESS
EDATE Function 1: The start date with 31 as last day
description=next month, start date=2021-10-31, relative delta=months=+1, relative date=2021-11-30
windows 3 10:42:07 021ms SUCCESS
EDATE Function 2: The start date with 31 as last day
description=last month, start date=2021-10-31, relative delta=months=-1, relative date=2021-09-30
windows 3 10:42:07 019ms SUCCESS
EDATE Function 3: The start date with 31 as last day
description=next two months, start date=2021-10-31, relative delta=months=+2, relative date=2021-12-31
windows 3 10:42:07 019ms SUCCESS
EDATE Function 4: The start date with 31 as last day
description=next three months, start date=2021-10-31, relative delta=months=+3, relative date=2022-01-31
windows 3 10:42:07 019ms SUCCESS
EDATE Function 5: The start date with 31 as last day
description=next four months, start date=2021-10-31, relative delta=months=+4, relative date=2022-02-28
windows 3 10:42:07 018ms SUCCESS
EDATE Function 6: The start date with 31 as last day
description=next five months, start date=2021-10-31, relative delta=months=+5, relative date=2022-03-31
windows 3 10:42:07 018ms SUCCESS
EOMONTH Function 1: The start date do not involve last day of month
description=next end of month, start date=2021-09-20, relative delta=months=+1, relative date=2021-10-31
windows 3 10:42:07 015ms SUCCESS
EOMONTH Function 2: The start date do not involve last day of month
description=last end of month, start date=2021-09-20, relative delta=months=-1, relative date=2021-08-31
windows 3 10:42:07 016ms SUCCESS
EOMONTH Function 3: The start date do not involve last day of month
description=next end of two months, start date=2021-09-20, relative delta=months=+2, relative date=2021-11-30
windows 3 10:42:07 016ms SUCCESS
EOMONTH Function 4: The start date do not involve last day of month
description=next end of three months, start date=2021-09-20, relative delta=months=+3, relative date=2021-12-31
windows 3 10:42:08 026ms SUCCESS
EOMONTH Function 5: The start date do not involve last day of month
description=next end of four months, start date=2021-09-20, relative delta=months=+4, relative date=2022-01-31
windows 3 10:42:08 017ms SUCCESS
EOMONTH Function 6: The start date do not involve last day of month
description=next end of five months, start date=2021-09-20, relative delta=months=+5, relative date=2022-02-28
windows 3 10:42:08 016ms SUCCESS
EOMONTH Function 1: The start date with 31 as last day
description=next month, start date=2021-10-31, relative delta=months=+1, relative date=2021-11-30
windows 3 10:42:08 017ms SUCCESS
EOMONTH Function 2: The start date with 31 as last day
description=last month, start date=2021-10-31, relative delta=months=-1, relative date=2021-09-30
windows 3 10:42:08 021ms SUCCESS
EOMONTH Function 3: The start date with 31 as last day
description=next two months, start date=2021-10-31, relative delta=months=+2, relative date=2021-12-31
windows 3 10:42:08 028ms SUCCESS
EOMONTH Function 4: The start date with 31 as last day
description=next three months, start date=2021-10-31, relative delta=months=+3, relative date=2022-01-31
windows 3 10:42:08 019ms SUCCESS
EOMONTH Function 5: The start date with 31 as last day
description=next four months, start date=2021-10-31, relative delta=months=+4, relative date=2022-02-28
windows 3 10:42:08 017ms SUCCESS
EOMONTH Function 6: The start date with 31 as last day
description=next five months, start date=2021-10-31, relative delta=months=+5, relative date=2022-03-31
windows 3 10:42:08 020ms SUCCESS
SDATE Function 1: The start date do not involve last day of month
description=next month, start date=2021-09-20, relative delta=months=+1, relative date=2021-10-20
windows 3 10:42:08 018ms SUCCESS
SDATE Function 2: The start date do not involve last day of month
description=last month, start date=2021-09-20, relative delta=months=-1, relative date=2021-08-20
windows 3 10:42:08 022ms SUCCESS
SDATE Function 3: The start date do not involve last day of month
description=next two months, start date=2021-09-20, relative delta=months=+2, relative date=2021-11-20
windows 3 10:42:08 029ms SUCCESS
SDATE Function 4: The start date do not involve last day of month
description=next month, plus one week, start date=2021-09-20, relative delta=months=+1, weeks=+1, relative date=2021-10-27
windows 3 10:42:08 030ms SUCCESS
SDATE Function 5: The start date do not involve last day of month
description=one month before one year, start date=2021-09-20, relative delta=years=+1, months=-1, relative date=2022-08-20
windows 3 10:42:08 026ms SUCCESS
SDATE Function 6: The start date do not involve last day of month
description=one month after one year, start date=2021-09-20, relative delta=years=+1, months=+1, relative date=2022-10-20
windows 3 10:42:08 031ms SUCCESS
SDATE Function 7: The start date do not involve last day of month
description=next ten days, start date=2021-09-20, relative delta=days=+10, relative date=2021-09-30
windows 3 10:42:08 020ms SUCCESS
SDATE Function 8: The start date do not involve last day of month
description=next twelve days, start date=2021-09-20, relative delta=days=+12, relative date=2021-10-02
windows 3 10:42:08 032ms SUCCESS
SDATE Function 9: The start date do not involve last day of month
description=next friday, start date=2021-09-20, relative delta=weekday=FR, relative date=2021-09-24
windows 3 10:42:08 039ms SUCCESS
SDATE Function 10: The start date do not involve last day of month
description=last friday in this month, start date=2021-09-20, relative delta=weekday=FR(-1), relative date=2021-09-17
windows 3 10:42:08 024ms SUCCESS
SDATE Function 11: The start date do not involve last day of month
description=next monday(it’s today!), start date=2021-09-20, relative delta=weekday=MO, relative date=2021-09-20
windows 3 10:42:08 016ms SUCCESS
SDATE Function 12: The start date do not involve last day of month
description=next monday, but not today, start date=2021-09-20, relative delta=days=+1, weekday=MO, relative date=2021-09-27
windows 3 10:42:08 020ms SUCCESS
SDATE Function 13: The start date do not involve last day of month
description=first saturday in next month, start date=2021-09-20, relative delta=months=+1, weekday=SA, relative date=2021-10-23
windows 3 10:42:08 014ms SUCCESS
SDATE Function 1: The start date with 31 as last day
description=next month, start date=2021-01-31, relative delta=months=+1, relative date=2021-02-28
windows 3 10:42:08 014ms SUCCESS
SDATE Function 2: The start date with 31 as last day
description=last month, start date=2021-01-31, relative delta=months=-1, relative date=2020-12-31
windows 3 10:42:08 016ms SUCCESS
SDATE Function 3: The start date with 31 as last day
description=next two months, start date=2021-01-31, relative delta=months=+2, relative date=2021-03-31
windows 3 10:42:08 015ms SUCCESS
SDATE Function 4: The start date with 31 as last day
description=next three months, start date=2021-01-31, relative delta=months=+3, relative date=2021-04-30
windows 3 10:42:08 015ms SUCCESS
SDATE Function 5: The start date with 31 as last day
description=next month, plus one week, start date=2021-01-31, relative delta=months=+1, weeks=+1, relative date=2021-03-07
windows 3 10:42:08 017ms SUCCESS
SDATE Function 6: The start date with 31 as last day
description=one month before one year, start date=2021-01-31, relative delta=years=+1, months=-1, relative date=2021-12-31
windows 3 10:42:08 018ms SUCCESS
SDATE Function 7: The start date with 31 as last day
description=one month after one year, start date=2021-01-31, relative delta=years=+1, months=+1, relative date=2022-02-28
windows 3 10:42:08 017ms SUCCESS
SDATE Function 8: The start date with 31 as last day
description=one month after three year (2024 leap year!), start date=2021-01-31, relative delta=years=+3, months=+1, relative date=2024-02-29
windows 3 10:42:08 016ms SUCCESS
SDATE Function 9: The start date with 31 as last day
description=next ten days, start date=2021-01-31, relative delta=days=+10, relative date=2021-02-10
windows 3 10:42:08 016ms SUCCESS
SDATE Function 10: The start date with 31 as last day
description=next friday, start date=2021-01-31, relative delta=weekday=FR, relative date=2021-02-05
windows 3 10:42:08 015ms SUCCESS
SDATE Function 11: The start date with 31 as last day
description=last friday in this month, start date=2021-01-31, relative delta=weekday=FR(-1), relative date=2021-01-29
windows 3 10:42:08 016ms SUCCESS
SDATE Function 1: The start date involve last day of february
description=next month, start date=2021-02-28, relative delta=months=+1, relative date=2021-03-28
windows 3 10:42:08 016ms SUCCESS
SDATE Function 2: The start date involve last day of february
description=last month, start date=2021-02-28, relative delta=months=-1, relative date=2021-01-28
windows 3 10:42:08 015ms SUCCESS
SDATE Function 3: The start date involve last day of february
description=next two months, start date=2021-02-28, relative delta=months=+2, relative date=2021-04-28
windows 3 10:42:08 018ms SUCCESS
SDATE Function 4: The start date involve last day of february
description=next three months, start date=2021-02-28, relative delta=months=+3, relative date=2021-05-28
windows 3 10:42:08 021ms SUCCESS
SDATE Function 5: The start date involve last day of february
description=next year, start date=2021-02-28, relative delta=years=+1, relative date=2022-02-28
windows 3 10:42:08 028ms SUCCESS
SDATE Function 6: The start date involve last day of february
description=next three year (2024 leap year!), start date=2021-02-28, relative delta=years=+3, relative date=2024-02-28
windows 3 10:42:08 016ms SUCCESS
SDATE Function 1: The months with different numbers of days
description=next month, start date=2021-01-27, relative delta=months=+1, relative date=2021-02-27
windows 3 10:42:08 017ms SUCCESS
SDATE Function 2: The months with different numbers of days
description=next month, start date=2021-01-28, relative delta=months=+1, relative date=2021-02-28
windows 3 10:42:09 017ms SUCCESS
SDATE Function 3: The months with different numbers of days
description=next month, start date=2021-01-29, relative delta=months=+1, relative date=2021-02-28
windows 3 10:42:09 017ms SUCCESS
SDATE Function 4: The months with different numbers of days
description=next month, start date=2021-01-30, relative delta=months=+1, relative date=2021-02-28
windows 3 10:42:09 016ms SUCCESS
SDATE Function 5: The months with different numbers of days
description=next month, start date=2021-01-31, relative delta=months=+1, relative date=2021-02-28
windows 3 10:42:09 016ms SUCCESS
SDATE Function 6: The months with different numbers of days
description=next two months, start date=2021-01-31, relative delta=months=+2, relative date=2021-03-31
windows 3 10:42:09 017ms SUCCESS
SDATE Function 7: The months with different numbers of days
description=next three months, start date=2021-01-31, relative delta=months=+3, relative date=2021-04-30
windows 3 10:42:09 017ms SUCCESS
SDATE Function 1: The time addition
description=next hour, start date=2021-10-20T16:10:59, relative delta=hours=+1, relative date=2021-10-20T17:10:59
windows 3 10:42:09 018ms SUCCESS
SDATE Function 2: The time addition
description=last hour, start date=2021-10-20T16:10:59, relative delta=hours=-1, relative date=2021-10-20T15:10:59
windows 3 10:42:09 040ms SUCCESS
SDATE Function 3: The time addition
description=next ten hours, start date=2021-10-20T16:10:59, relative delta=hours=+10, relative date=2021-10-21T02:10:59
windows 3 10:42:09 029ms SUCCESS
SDATE Function 4: The time addition
description=next 24 hours, start date=2021-10-20T16:10:59, relative delta=hours=+24, relative date=2021-10-21T16:10:59
windows 3 10:42:09 033ms SUCCESS
SDATE Function 5: The time addition
description=next hour and ten minutes, start date=2021-10-20T16:10:59, relative delta=hours=+1, minutes=+10, relative date=2021-10-20T17:20:59
windows 3 10:42:09 035ms SUCCESS
SDATE Function 6: The time addition
description=next 60 minutes, start date=2021-10-20T16:10:59, relative delta=minutes=+60, relative date=2021-10-20T17:10:59
windows 3 10:42:09 024ms SUCCESS
SDATE Function 7: The time addition
description=next second, start date=2021-10-20T16:10:59, relative delta=seconds=+1, relative date=2021-10-20T16:11:00
windows 3 10:42:09 021ms SUCCESS
SDATE Function 8: The time addition
description=next day, plus one hour, start date=2021-10-20T16:10:59, relative delta=days=+1, hours=+1, relative date=2021-10-21T17:10:59
windows 3 10:42:09 022ms SUCCESS
SDATE Function 9: The time addition
description=one day after one month, plus one hour, start date=2021-10-20T16:10:59, relative delta=months=+1, days=+1, hours=+1, relative date=2021-11-21T17:10:59
windows 3 10:42:09 015ms SUCCESS
SDATE Function 10: The time addition
description=one day after one month, plus one hour, start date=2021-01-31T16:10:59, relative delta=months=+1, days=+1, hours=+1, relative date=2021-03-01T17:10:59
windows 3 10:42:09 017ms SUCCESS

Manual Tests

No manual tests were recorded
Serenity BDD version 3.6.22