날짜/시간 차이

입력 날짜와 시각에 지정한 시간차를 적용해 새 값을 계산합니다.

입력: 텍스트결과: 샌드박스에서 미리 보는 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)