Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #8552
| From | Swifty <steve.j.swift@gmail.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: getday() doesn't agree with system clock |
| Date | 2011-11-23 05:24 +0000 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <9f0pc7tbrsfp89f4tlu8e6nhujecd30riq@4ax.com> (permalink) |
| References | <thqjc7tjcififr5ms9bbrs7v46ivmopfj6@4ax.com> <$gIgxYJWCAzOFwfr@invalid.uk.co.demon.merlyn.invalid> |
On Tue, 22 Nov 2011 20:05:42 +0000, Dr J R Stockton
<reply1147@merlyn.demon.co.uk> wrote:
>You could save the client's CPU time by initially determining the
>duration in milliseconds (not milliSiemens) until midnight and then
>waiting almost all of that time in a single move.
Indeed, and that is something that I customarily do in other
situations like this.
But the:
setInterval('getCurrentTime()', 1000);
... has another purpose. It updates the time at the top right of the
page. I didn't mention this in earlier posts, as it wasn't germane.
The whole purpose of the webpage is the passage of time, from seconds
to years (or decades in the case of some versions of my page run for
other people).
--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
getday() doesn't agree with system clock Swifty <steve.j.swift@gmail.com> - 2011-11-21 06:19 +0000
Re: getday() doesn't agree with system clock Denis McMahon <denismfmcmahon@gmail.com> - 2011-11-21 08:49 +0000
Re: getday() doesn't agree with system clock Swifty <steve.j.swift@gmail.com> - 2011-11-21 13:19 +0000
Re: getday() doesn't agree with system clock Elegie <elegie@anonymous.invalid> - 2011-11-21 09:53 +0100
Re: getday() doesn't agree with system clock Scott Sauyet <scott.sauyet@gmail.com> - 2011-11-21 05:25 -0800
Re: getday() doesn't agree with system clock Elegie <elegie@anonymous.invalid> - 2011-11-21 19:45 +0100
Re: getday() doesn't agree with system clock Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-11-21 10:20 +0100
Re: getday() doesn't agree with system clock Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-11-21 11:11 +0100
Re: getday() doesn't agree with system clock SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2011-11-21 10:43 +0100
Re: getday() doesn't agree with system clock Dr J R Stockton <reply1147@merlyn.demon.co.uk> - 2011-11-22 20:05 +0000
Re: getday() doesn't agree with system clock Swifty <steve.j.swift@gmail.com> - 2011-11-23 05:24 +0000
Re: getday() doesn't agree with system clock Zlatko Đurić <zladuric@gmail.com> - 2011-11-23 22:30 +0100
Re: getday() doesn't agree with system clock Swifty <steve.j.swift@gmail.com> - 2011-11-24 06:15 +0000
csiph-web