Borrar filtros
Borrar filtros

Is 1900 a leap year?

4 visualizaciones (últimos 30 días)
Jimmie Whate
Jimmie Whate el 6 de Oct. de 2016
Comentada: Walter Roberson el 6 de Oct. de 2016
Is 1900 a leap year?
I keep on getting error saying 1900 is not a leap year.

Respuesta aceptada

Abhishek Jain
Abhishek Jain el 6 de Oct. de 2016
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 comentario
Walter Roberson
Walter Roberson el 6 de Oct. de 2016
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:

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Dates and Time en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by