Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   Share Worlds (http://www.alice.org/community/forumdisplay.php?f=6)
-   -   Countdown till christmass (http://www.alice.org/community/showthread.php?t=7746)

arty-fishL 11-17-2012 06:19 PM

1 Attachment(s)
I decided to fix it.
It now accounts (and should work) for:
- months
- leap years
- viewing it on the 6 days after christmas

I also compared it to some online countdowns I found and realised a fundamental mistake; when you are already into the last day, hour or minute, there are 0 of them left, not 1.
This doesn't apply to seconds, because milliseconds aren't displayed.

I also rearranged some of the code, so that it is more efficient.

jediaction 11-28-2012 01:52 PM

[QUOTE=arty-fishL;51599]I decided to fix it.
It now accounts (and should work) for:
- months
- leap years
- viewing it on the 6 days after christmas

I also compared it to some online countdowns I found and realised a fundamental mistake; when you are already into the last day, hour or minute, there are 0 of them left, not 1.
This doesn't apply to seconds, because milliseconds aren't displayed.

I also rearranged some of the code, so that it is more efficient.[/QUOTE]

Very cool, looks like this is the new official count down.

nickster654 12-23-2013 04:58 PM

is it too late to bump this?

wega77 12-24-2013 10:57 AM

Great idea.


All times are GMT -5. The time now is 10:20 AM.

Copyright ©2021, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.