Date: Fri, 29 Mar 2024 00:50:18 -0700 (PDT) Message-ID: <1888243621.421.1711698618704@wiki.srpcs.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_420_372559323.1711698618704" ------=_Part_420_372559323.1711698618704 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Determines if a given year is a leap year.
IsLeapYear =3D SRP= _Date("IsLeapYear", Year)
1 if the given year is a leap year, 0 if not.
Parameter | Description |
---|---|
Year | A calendar year. (REQUIRED) |
The "IsLeapYear" service determines if a given year is a leap year. Leap= years occur every 4 year, except every 100 years, unless it's been 400 yea= rs. Instead of you having to do that math, this service does it for you. It= returns 1 if the year is a leap year and 0 if the year is not a leap year = or the given year is not a valid year.
// Is this year a leap ye= ar? IsLeapYear =3D SRP_Date("IsLeapYear", SRP_Date("Year", Date())) // Is 2020 a leap year? IsLeapYear =3D SRP_Date("IsLeapYear", 2020)