Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #25457

Re: Searching for a "TimeInterval" type...

From Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at>
Newsgroups comp.lang.java.programmer
Subject Re: Searching for a "TimeInterval" type...
Date 2013-10-03 18:54 +0000
Organization A noiseless patient Spider
Message-ID <slrnl4rfap.mol.avl@gamma.logic.tuwien.ac.at> (permalink)
References (1 earlier) <524b607c$0$294$14726298@news.sunsite.dk> <slrnl4odvs.mol.avl@gamma.logic.tuwien.ac.at> <lvwqlv8loh.fsf@saunalahti.fi> <slrnl4pcla.mol.avl@gamma.logic.tuwien.ac.at> <lv1u42xwt1.fsf@saunalahti.fi>

Show all headers | View raw


Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> wrote:
> Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> writes:
>> Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> wrote:
>>> Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> 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"

(making the "next day same wallclock time" merely a landmark on the
route to the target time. Fortunately, we're smart enough to arrive
there without waiting for next day same time and then needing to go
one hour backwards in time)

A really exact description of that concept of mixed units timespans
is implemented by my GregorianCalendar-derived Interval class, although
I didn't test it yet. So little time, so much to do ;-)

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Searching for a "TimeInterval" type... Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2013-10-01 17:29 +0000
  Re: Searching for a "TimeInterval" type... markspace <markspace@nospam.nospam> - 2013-10-01 11:11 -0700
    Re: Searching for a "TimeInterval" type... markspace <markspace@nospam.nospam> - 2013-10-01 11:22 -0700
      Re: Searching for a "TimeInterval" type... Arne Vajhøj <arne@vajhoej.dk> - 2013-10-01 19:51 -0400
      Re: Searching for a "TimeInterval" type... Sebastian <news@seyweiler.dyndns.org> - 2013-10-02 09:23 +0200
        Re: Searching for a "TimeInterval" type... Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2013-10-02 14:42 +0000
          Re: Searching for a "TimeInterval" type... Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2013-10-03 07:57 +0200
            Re: Searching for a "TimeInterval" type... Arne Vajhøj <arne@vajhoej.dk> - 2013-10-03 20:44 -0400
              Re: Searching for a "TimeInterval" type... Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2013-10-05 04:22 +0200
          Re: Searching for a "TimeInterval" type... Sebastian <news@seyweiler.dyndns.org> - 2013-10-16 19:43 +0200
  Re: Searching for a "TimeInterval" type... Marcel Müller <news.5.maazl@spamgourmet.org> - 2013-10-01 21:54 +0200
    Re: Searching for a "TimeInterval" type... Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2013-10-02 15:02 +0000
  Re: Searching for a "TimeInterval" type... Silvio <silvio@internet.com> - 2013-10-01 22:04 +0200
  Re: Searching for a "TimeInterval" type... Arne Vajhøj <arne@vajhoej.dk> - 2013-10-01 19:53 -0400
    Re: Searching for a "TimeInterval" type... Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2013-10-02 15:12 +0000
      Re: Searching for a "TimeInterval" type... Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2013-10-02 23:25 +0300
        Re: Searching for a "TimeInterval" type... Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2013-10-02 23:56 +0000
          Re: Searching for a "TimeInterval" type... Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2013-10-03 17:18 +0300
            Re: Searching for a "TimeInterval" type... Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2013-10-03 18:54 +0000
              Re: Searching for a "TimeInterval" type... Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2013-10-03 23:53 +0300
      Re: Searching for a "TimeInterval" type... Silvio <silvio@internet.com> - 2013-10-02 23:03 +0200
        Re: Searching for a "TimeInterval" type... Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2013-10-03 00:04 +0000
      Re: Searching for a "TimeInterval" type... Arne Vajhøj <arne@vajhoej.dk> - 2013-10-02 21:36 -0400
        Re: Searching for a "TimeInterval" type... Arne Vajhøj <arne@vajhoej.dk> - 2013-10-03 21:41 -0400
          Re: Searching for a "TimeInterval" type... Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2013-10-04 09:17 +0000
            Re: Searching for a "TimeInterval" type... Arne Vajhøj <arne@vajhoej.dk> - 2013-10-04 20:52 -0400

csiph-web