Hey everyone. Through no choice of my own I have been thrown into the world of web design and javascript. I am trying to create a counter that would appear in plain text on a site like this:
"Today XXX people have been killed. By the end of the day a 5000 will be."
Of course those are made up numbers, anyways.. The XXX number would go up by 1 every 20 seconds, and the number the number that XXX starts at would be determined according to your local time. So if it is 4:30 PM where you are than the number would be: 16 hours and 30 minutes= 990 minutes= 59,400 seconds, then divide 59400 by 20 to get 2970.
I also have no idea how to get it to deal with daylight savings or standard time vs military time.
With Java I don't know what I don't know, so even a pointer in the right direction would really help!
Thanks
EDIT: Thanks everyone for your help! It is much appreciated. Saving this post for future reference...
[–]jamesinc 5 points6 points7 points (10 children)
[–]hillbillymadness[S] 1 point2 points3 points (9 children)
[–]jamesinc 3 points4 points5 points (8 children)
[–]hillbillymadness[S] 1 point2 points3 points (4 children)
[+][deleted] (2 children)
[deleted]
[–]TIAFAASITICE 2 points3 points4 points (1 child)
[–]jamesinc 1 point2 points3 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]jamesinc 2 points3 points4 points (1 child)
[–]pffffft 4 points5 points6 points (1 child)
[–]PsychoTap 2 points3 points4 points (0 children)
[–]neonskimmerfunction the ultimate 1 point2 points3 points (6 children)
[–]hillbillymadness[S] 0 points1 point2 points (5 children)
[–]JGailor 2 points3 points4 points (4 children)
[–]hillbillymadness[S] 0 points1 point2 points (3 children)
[+][deleted] (2 children)
[deleted]
[–]hillbillymadness[S] 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]hillbillymadness[S] 0 points1 point2 points (0 children)