Post Reply 
LEEP YEAR
01-27-2017, 07:18 PM
Post: #4
RE: LEEP YEAR
Here is another version of this program, using the fact that DAYOFWEEK returns -1 for dates that don't exist

Code:

EXPORT YEAR(Year)
BEGIN
  IFTE(DAYOFWEEK(Year+0.0229) < 0, "ORD", "LEAP");
END;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
LEEP YEAR - ggauny@live.fr - 01-27-2017, 03:33 PM
RE: LEEP YEAR - JMB - 01-27-2017, 04:47 PM
RE: LEEP YEAR - grsbanks - 02-06-2017, 03:08 PM
RE: LEEP YEAR - salvomic - 02-06-2017, 03:25 PM
RE: LEEP YEAR - ggauny@live.fr - 01-27-2017, 05:00 PM
RE: LEEP YEAR - JMB - 01-27-2017 07:18 PM
RE: LEEP YEAR - ggauny@live.fr - 01-27-2017, 08:37 PM
RE: LEEP YEAR - KeithB - 01-27-2017, 08:56 PM



User(s) browsing this thread: 1 Guest(s)