Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #16235
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Dr J R Stockton <reply1239@merlyn.demon.co.uk.invalid> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: How to construct a tomorrow? |
| Date | Fri, 28 Sep 2012 18:30:52 +0100 |
| Organization | Home |
| Lines | 24 |
| Message-ID | <ecUo+7MM7dZQFwAQ@invalid.uk.co.demon.merlyn.invalid> (permalink) |
| References | <6aae09ab-0d45-4c30-accf-909d7445c6a2@o8g2000yqm.googlegroups.com> <k401aj$jnh$1@speranza.aioe.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain;charset=us-ascii |
| Injection-Info | mx04.eternal-september.org; posting-host="530603207bb5dc63eadbc45c88da0024"; logging-data="16327"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ruVf+Kz8q3oEdqQFCVR6HitwbRDehYy0=" |
| User-Agent | Turnpike/6.05-S (<hg+ExxAgcsscjA9uK+8bCnc9V5>) |
| Cancel-Lock | sha1:rU3Z9+AoFUb+jsiAjWKulbVtWts= |
| Xref | csiph.com comp.lang.javascript:16235 |
Show key headers only | View raw
In comp.lang.javascript message <k401aj$jnh$1@speranza.aioe.org>, Thu,
27 Sep 2012 00:58:35, Christoph Becker <cmbecker69@gmx.de> posted:
>justaguy wrote:
>> how do we get tomorrow based on today?
>So a simple solution is:
xxxxxx naive
>
>var today = new Date();
>var tomorrow = new Date(today.getTime() + 86400000)
And what happens when the interval crosses 01:00 UTC on the last Sundays
of March and October? (dates and times are different for chronologically
inconvenient locations).
Also, 86400000 is better written as 864e5 - shorter, and avoids
miscounting zeroes.
--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05.
Website <http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
PAS EXE etc. : <http://www.merlyn.demon.co.uk/programs/> - see in 00index.htm
Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to construct a tomorrow? justaguy <lichunshen84@gmail.com> - 2012-09-26 14:47 -0700
Re: How to construct a tomorrow? Christoph Becker <cmbecker69@gmx.de> - 2012-09-27 00:58 +0200
Re: How to construct a tomorrow? justaguy <lichunshen84@gmail.com> - 2012-09-26 17:47 -0700
Re: How to construct a tomorrow? Gene Wirchenko <genew@ocis.net> - 2012-09-26 19:53 -0700
Re: How to construct a tomorrow? Dr J R Stockton <reply1239@merlyn.demon.co.uk.invalid> - 2012-09-28 18:40 +0100
Re: How to construct a tomorrow? Gene Wirchenko <genew@ocis.net> - 2012-09-29 20:52 -0700
Re: How to construct a tomorrow? Dr J R Stockton <reply1239@merlyn.demon.co.uk.invalid> - 2012-09-28 18:30 +0100
Re: How to construct a tomorrow? Christoph Becker <cmbecker69@gmx.de> - 2012-09-29 02:00 +0200
Re: How to construct a tomorrow? John G Harris <john@nospam.demon.co.uk> - 2012-09-29 10:02 +0100
Re: How to construct a tomorrow? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-30 14:29 +0200
Re: How to construct a tomorrow? Christoph Becker <cmbecker69@gmx.de> - 2012-09-30 23:24 +0200
Re: How to construct a tomorrow? Dr J R Stockton <reply1239@merlyn.demon.co.uk.invalid> - 2012-09-30 19:55 +0100
Re: How to construct a tomorrow? Dr J R Stockton <reply1239@merlyn.demon.co.uk.invalid> - 2012-09-27 21:32 +0100
Re: How to construct a tomorrow? Christoph Becker <cmbecker69@gmx.de> - 2012-09-28 01:03 +0200
Re: How to construct a tomorrow? Gene Wirchenko <genew@ocis.net> - 2012-09-27 16:36 -0700
Re: How to construct a tomorrow? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-28 10:37 +0200
Re: How to construct a tomorrow? Dr J R Stockton <reply1239@merlyn.demon.co.uk.invalid> - 2012-09-29 20:39 +0100
Re: How to construct a tomorrow? Christoph Becker <cmbecker69@gmx.de> - 2012-09-30 23:37 +0200
Re: How to construct a tomorrow? Andrew Poulos <ap_prog@hotmail.com> - 2012-09-28 09:25 +1000
Re: How to construct a tomorrow? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-09-28 08:37 -0700
Re: How to construct a tomorrow? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-28 18:48 +0200
Re: How to construct a tomorrow? Dr J R Stockton <reply1239@merlyn.demon.co.uk.invalid> - 2012-09-29 20:40 +0100
Re: How to construct a tomorrow? Andrew Poulos <ap_prog@hotmail.com> - 2012-09-30 18:32 +1000
Re: How to construct a tomorrow? Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2012-09-28 23:57 +0200
Re: How to construct a tomorrow? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-30 13:49 +0200
csiph-web