rleapyear()

Check if a value passed as a parameter is a leap year; returns 1 when TRUE.

Syntax

mint rleapyear(mint year);
  1. year is an integer, representing the year component of a date, in the full form yyyy (i.e., 2004).

Returns

Table 1. Return codes
Code Description
1 The year is a leap year.
0 The year is not a leap year.