日時の差分

入力日時に指定の時間差を適用して新しい日時を計算します。

入力: テキスト結果: サンドボックスでプレビューする 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)