Miscellaneous > Programming & Networking

32 hour clock

<< < (2/9) > >>

Master of Reality:
i tried that because i figured that and it did:

--- Code: ---
--- End code ---

voidmain:
You must not have copy/pasted it correctly. Either that your your system is *incredibly* screwed. This is about the most basic program there is and should compile without a single warning or error.

Maybe you can copy/paste the code back in to a message and let me see if anything is screwed.

Master of Reality:
i guess i did copy and paste it wrong.
teh clock is working, but i am gonna have to start it at 8 am... 2 hours, damn i guess i am gonna stay up all night... nevermind i already have stayed up all night.

[ August 23, 2002: Message edited by: Master of Reality / Bob ]

voidmain:
Heh heh, well you might want to add "day", "month", and "year" variables and the code to update them. Just follow the same logic as I did for second, minute, hour.  You might also add a snippet at the top so when you start it, it will sync with the current time from the system clock, but convert and initialize all the time variables to the time it would be on your 32 hour clock/calendar.

[ August 23, 2002: Message edited by: VoidMain ]

Master of Reality:
ummm... is there something special that i have to put down if i want a number to stay the same in the 'else' part?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version