leapyear

Determine leap year.

Syntax

  • tf = leapyear(year)

Input argument

  • year - year: scalar or array numeric value.

Output argument

  • tf - Leap year determination result: scalar or array logical value.

Description

leapyear determines leap years.

Leap years is done by Gregorian calendar rules.

Example

tf = leapyear([2020 2021 2022])

See also

datenum.

History

Version
Description

1.0.0

initial version

Author

Allan CORNET

Last updated