Page 1 of 1

For those of you who follow the Gregorian calendar...

Posted: Mon Dec 31, 2007 11:22 pm
by Nodtveidt
...Happy new year. :D

Posted: Tue Jan 01, 2008 3:11 am
by BadMrBox
Happy new year :)

Posted: Tue Jan 01, 2008 4:20 am
by burger2227
What a party! STFU! Did I say that out loud? Have a good 2008 and whatever calendar year!

Ted

Posted: Wed Jan 02, 2008 2:24 am
by Seb McClouth
Best wishes to all and good will towards mankind (once again)

Guess what?

Posted: Sat Jan 19, 2008 2:01 pm
by burger2227

Code: Select all

INPUT "Enter the year: ", Y
IsleapYear = (Y MOD 4 = 0) - (Y MOD 100 = 0) + (Y MOD 400 = 0) 
February is happy too!

Ted

Posted: Sat Jan 19, 2008 3:32 pm
by Seb McClouth
I prefere the code I use in QBinux, ofcourse from Linux:

Code: Select all

kyear = tmx.tmYear - 70
res = year * kyear + day * ((kyear + 1) / 4)
res = res + month(tmx.tmMon)
IF tmx.tmMon > 1 and ((kyear + 2) \ 4 ) THEN
res = res - day
END IF