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

Discuss whatever you want here--both QB and non-QB related. Anything from the DEF INT command to the meaning of life!

Moderators: Pete, Mods

Post Reply
User avatar
Nodtveidt
Veteran
Posts: 826
Joined: Sun Jul 25, 2004 4:24 am
Location: Quebradillas, PR
Contact:

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

Post by Nodtveidt » Mon Dec 31, 2007 11:22 pm

...Happy new year. :D

User avatar
BadMrBox
Veteran
Posts: 86
Joined: Tue Feb 28, 2006 12:19 pm

Post by BadMrBox » Tue Jan 01, 2008 3:11 am

Happy new year :)

User avatar
burger2227
Veteran
Posts: 2429
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Post by burger2227 » Tue Jan 01, 2008 4:20 am

What a party! STFU! Did I say that out loud? Have a good 2008 and whatever calendar year!

Ted
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0

User avatar
Seb McClouth
Veteran
Posts: 342
Joined: Wed Nov 09, 2005 7:47 am
Location: Inside the Matrix...
Contact:

Post by Seb McClouth » Wed Jan 02, 2008 2:24 am

Best wishes to all and good will towards mankind (once again)
QBinux is a Linux distribution with the aim of integrating the work of the vast community of free software developers at Pete's QBASIC Site in order to create a modern, performant, safe and easy to use system for system administrators and desktop users.

User avatar
burger2227
Veteran
Posts: 2429
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Guess what?

Post by burger2227 » Sat Jan 19, 2008 2:01 pm

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
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0

User avatar
Seb McClouth
Veteran
Posts: 342
Joined: Wed Nov 09, 2005 7:47 am
Location: Inside the Matrix...
Contact:

Post by Seb McClouth » Sat Jan 19, 2008 3:32 pm

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
QBinux is a Linux distribution with the aim of integrating the work of the vast community of free software developers at Pete's QBASIC Site in order to create a modern, performant, safe and easy to use system for system administrators and desktop users.

Post Reply