Basis 0 or omitted: 30/360. Truncates date values and swaps them if date1 is after date2. If the dates are equal, the difference of days is 0. Assumes that each month has 30 days and the total number of days in the year is 360 by making the following adjustments:
If both day-of-months are 31, they are changed to 30
Otherwise, if date1’s day-of-month is 31, it is changed to 30
Otherwise, if date1’s day-of-month is 30 and date2’s day-of-month is 31, date2’s day-of-month is changed to 30 (note that date2’s day-of-month will stay 31 if date1’s day < 30)
Otherwise, if both dates are the last day of February in their respective years, both day-of-month is changed to 30
Otherwise, if date1 is the last day of February, its day-of-month is changed to 30
요약하자면, 두 날짜가 월말일 때는 30일로 적절히 정리한 뒤 계산한다는 뜻이다.
이런 과정을 거치고 나면 두 값이 완벽하게 동일한 것을 확인할 수 있다.
이 문서의 주 내용은 excel과 OOXML 간에 yearfrac()의 계산방법이 차이가 있어 위험성이 크다는 내용임 [본문으로]