Is 1900 a leap year?

5 ビュー (過去 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 Center および File ExchangeDates and Time についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by