sysIsLeapYear

Determines if a year is a leap year (returns 1 if true, 0 if false). Takes year (year number). Returns 1 if the specified year is a leap year, 0 otherwise.

System

Parameters & Returns

Parameters

year Int

Returns

Int

Quick Summary

Determines if a year is a leap year (returns 1 if true, 0 if false). Takes year (year number). Returns 1 if the specified year is a leap year, 0 otherwise.

Technical Exegesis...

Returns 1 if the specified year is a leap year, 0 otherwise. Uses the standard Gregorian calendar leap year rule: a year is a leap year if it is divisible by 4, except for years divisible by 100 (which are not leap years), unless the year is also divisible by 400 (which makes it a leap year).

Examples: 2000 and 2024 are leap years (divisible by 400 or by 4), 1900 and 2100 are not leap years (divisible by 100 but not 400). Leap years have 366 days with February having 29 days.

Example

Example.bam
; No example implemented yet