---
name: "BIS_fnc_isLeapYear"
type: function
status: ok
groups: ["Math", "Environment"]
arma3_since: "1.10"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_isLeapYear
revid: 326986
updated: 2022-07-12T21:44:43Z
---

# BIS_fnc_isLeapYear

*Function · Math, Environment · Arma 3 v1.10*

## Description

Returns true if given year is a leap year, otherwise false.

## Syntax

```sqf
year call BIS_fnc_isLeapYear
```

**Parameters:**

- `year`: [Number](../topics/Number.md) - a non-decimal number (a.k.a integer)

**Returns:** [Boolean](../topics/Boolean.md)

## Examples

### Example 1

```sqf
private _isLeapYear = 2035 call BIS_fnc_isLeapYear;
```

### Example 2

```sqf
private _isLeapYear = 2036 call BIS_fnc_isLeapYear; // 2036 is a leap year
```

## See also

[date](../commands/date.md)

<sub>Source: [BI Community Wiki — BIS fnc isLeapYear](https://community.bistudio.com/wiki/BIS_fnc_isLeapYear) (revision 326986).</sub>
