Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!sdd.hp.com!hp-pcd!hpcvra!rnews!hpcvbbs!akcs.kevin From: akcs.kevin@hpcvbbs.UUCP (Kevin Jessup) Newsgroups: comp.sys.handhelds Subject: Re: Leap Years Message-ID: <26c784cb:673.3comp.sys.handhelds;1@hpcvbbs.UUCP> Date: 14 Aug 90 05:03:34 GMT References: <31210047@hpcvia.CV.HP.COM> <1010@ncrwat.Waterloo.NCR.COM> Lines: 11 Here is a handy leap year function for your 28 or 48! << -> y << y 4 MOD NOT y 100 MOD AND y 400 MOD NOT OR >> >> Place the year on the stack. Execute the function. Output is 1 if a leap year, else 0. Kevin Jessup Marquette Electronics Milwaukee, WI (414) 362-2020 "Newton hated figs."