Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed1.swip.net!newsfeed2.funet.fi!newsfeeds.funet.fi!feeder1.news.elisa.fi!uutiset.elisa.fi!7564ea0f!not-for-mail From: Jukka Lahtinen Newsgroups: comp.lang.java.programmer Subject: Re: Searching for a "TimeInterval" type... Organization: N/A References: <524b607c$0$294$14726298@news.sunsite.dk> X-no-archive: yes Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:HbvL6lnr0TVyQrFOySYOQocZDzY= MIME-Version: 1.0 Content-Type: text/plain Lines: 26 Date: Thu, 03 Oct 2013 23:53:09 +0300 NNTP-Posting-Host: 91.155.88.191 X-Complaints-To: newsmaster@saunalahti.com X-Trace: uutiset.elisa.fi 1380833589 91.155.88.191 (Thu, 03 Oct 2013 23:53:09 EEST) NNTP-Posting-Date: Thu, 03 Oct 2013 23:53:09 EEST Xref: csiph.com comp.lang.java.programmer:25458 Andreas Leitgeb writes: > Jukka Lahtinen wrote: >> Andreas Leitgeb writes: >>> Jukka Lahtinen wrote: >>>> Andreas Leitgeb writes: >>>>> Some example interval of what I'm going to deal with can be >>>>> described as "tomorrow one (wall-clock)hour earlier". This just >>>>> isn't the same as in "23 hours" (nor as "82800 seconds"). >>>> What will that be when called between midnight and 01:00? >>> It would be the same day between 23:00 and midnight, even if the >>> day itself is a DST-switch-day. >> In that case it isn't tomorrow, so "tomorrow one (wall-clock)hour >> earlier" is a bit misleading 1 hour in every 24. That is over 4% of >> time. > The only thing that may have been misleading was my short verbal > representation. A (slightly) more precise one could have been: > "next day same wallclock time, but then one hour earlier" Or just changing the order of words to "one hour before the same time tomorrow". Well, working with computers you learn to nitpick and tend to check what is really meant with ambiguous expressions.. -- Jukka Lahtinen