필터 지우기
필터 지우기

Is 1900 a leap year?

조회 수: 4 (최근 30일)
Jimmie Whate
Jimmie Whate 2016년 10월 6일
댓글: Walter Roberson 2016년 10월 6일
Is 1900 a leap year?
I keep on getting error saying 1900 is not a leap year.

채택된 답변

Abhishek Jain
Abhishek Jain 2016년 10월 6일
No, 1900 is not a leap year. Condition for an year to be Leap year us that it should be divisible by 4. But if it is century like 1900, it should be divisible by 400.
Hope that helps !!
  댓글 수: 1
Walter Roberson
Walter Roberson 2016년 10월 6일
By the way, the Excel numeric date format was created on the assumption that 1900 was a leap year, so if you are going back and forth with Excel, you may encounter an issue that the dates in Excel seem off by 1 day. There are a few different ways to handle that automatically:

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Dates and Time에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by