informix
INFORMIX-ESQL/C Programmer's Manual
ESQL/C Function Library

rleapyear()

The rleapyear() function returns 1 (TRUE) when the argument that is passed to it is a leap year and 0 (FALSE) when it is not.

Syntax

Usage

The argument year must be the year component of a date and not the date itself. You must express the year in full form (1996) and not abbreviated form (96).

Return Codes

1 The year is a leap year.
0 The year is not a leap year.

Example

The demo directory contains this sample program in the rleapyear.ec file.

Output


INFORMIX-ESQL/C Programmer's Manual, Version 9.21
Copyright © 1999, Informix Software, Inc. All rights reserved