日期時間差

根據輸入日期時間和指定的时間差計算新的日期時間。

輸入: 文本結果: 在沙盒中预覽的 HTML

文本輸入

執行後查看結果

範例

Advance a UTC clock by 1 hours

Advance a UTC clock by 1 hours. This is a constructed public fixture.

輸入

01/01/2025 00:00:00

Expected checks

Case-insensitive
Contains "01:00:00"
内置格式
Standard date and time
輸入格式字串
DD/MM/YYYY HH:mm:ss
时間运算
Add
天
0
小时
1
分钟
0
秒
0
Advance a UTC clock by 2 hours

Advance a UTC clock by 2 hours. This is a constructed public fixture.

輸入

01/01/2025 00:00:00

Expected checks

Case-insensitive
Contains "02:00:00"
内置格式
Standard date and time
輸入格式字串
DD/MM/YYYY HH:mm:ss
时間运算
Add
天
0
小时
2
分钟
0
秒
0
Advance a UTC clock by 3 hours

Advance a UTC clock by 3 hours. This is a constructed public fixture.

輸入

01/01/2025 00:00:00

Expected checks

Case-insensitive
Contains "03:00:00"
内置格式
Standard date and time
輸入格式字串
DD/MM/YYYY HH:mm:ss
时間运算
Add
天
0
小时
3
分钟
0
秒
0
Advance a UTC clock by 4 hours

Advance a UTC clock by 4 hours. This is a constructed public fixture.

輸入

01/01/2025 00:00:00

Expected checks

Case-insensitive
Contains "04:00:00"
内置格式
Standard date and time
輸入格式字串
DD/MM/YYYY HH:mm:ss
时間运算
Add
天
0
小时
4
分钟
0
秒
0
Advance a UTC clock by 5 hours

Advance a UTC clock by 5 hours. This is a constructed public fixture.

輸入

01/01/2025 00:00:00

Expected checks

Case-insensitive
Contains "05:00:00"
内置格式
Standard date and time
輸入格式字串
DD/MM/YYYY HH:mm:ss
时間运算
Add
天
0
小时
5
分钟
0
秒
0
DateTime Delta Negative

輸入

20/02/2024 14:37:00

Expected rejection

Message contains
20/02/2024 13:37:00
内置格式
Standard date and time
輸入格式字串
DD/MM/YYYY HH:mm:ss
时間运算
Subtract
天
0
小时
1
分钟
0
秒
0
DateTime Delta Positive

輸入

20/02/2024 13:36:00

Expected answer

20/02/2024 13:37:00
内置格式
Standard date and time
輸入格式字串
DD/MM/YYYY HH:mm:ss
时間运算
Add
天
0
小时
0
分钟
1
秒
0

相关工具

日期 / 時間

操作参考

查看原始技术文檔 (English)