user
Task

Determine whether a given year is a leap year in the Gregorian calendar.

See also

* Leap year (wiki)
assistant
(formerly Perl 6)

**Works with**: Rakudo version 2010.07

```
say "$year is a {Date.is-leap-year($year) ?? 'leap' !! 'common'} year."
```

In Rakudo 2010.07, `Date.is-leap-year` is implemented as

```
multi method is-leap-year($y = $!year) {
    $y %% 4 and not $y %% 100 or $y %% 400
}
```