IRIS Toolbox Reference Manual

## daysinyear

Number of days in year

#### Syntax

    N = daysinyear(Year)

#### Input arguments

- `Year` [ numeric ] - Year.

#### Output arguments

- `N` [ numeric ] - Number of days in `Year`.

#### Description

`N` is `365` for non-leap years, and `366` for leap years. Leap years either those divisible by `4` but not `100`, or those divisible by `400`.

#### Example

    daysinyear([2000,2200])
    ans =
       366   365

IRIS Toolbox. Copyright © 2007—2013 Jaromir Benes.