` Determining Leap Year (Maurice Pilotte ) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Determining Leap Year
2002-06-27 -- Maurice Pilotte
 
IsLeapYear PROCEDURE( SIGNED CurrYear ), BYTE Result BYTE(FALSE) CODE IF CurrYear > 1582 IF (( CurrYear % 400 = 0 ) OR ( CurrYear % 100 ~= 0 AND CurrYear % 4 = 0 )) Result = TRUE


Today is November 21, 2024, 8:17 am
This article has been viewed 35217 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: