Skip to main content
DevTools24

날짜 차이 계산기

두 날짜 사이의 정확한 차이를 일, 주 및 월로 계산합니다. 근무일 수를 포함합니다.

Date Calculations - 기술 세부 정보

Date difference calculations account for varying month lengths and leap years. Working days exclude Saturdays and Sundays from the count.

명령줄 대안

# Using GNU date
echo $(( ( $(date -d '2024-12-31' +%s) - $(date -d '2024-01-01' +%s) ) / 86400 )) days

# Using Python
python3 -c "from datetime import date; print((date(2024,12,31) - date(2024,1,1)).days)"