in reply to Re: working with time ranges that cross days
in thread working with time ranges that cross days

FWIW, just want to elaborate on and correct the above tip a bit. Basically, it suggested to convert your Date/Time representation of both ends of your range to unix time (number of seconds since the Epoch). This will give you two integers, each uniquely identifying point in time, to work with. To achieve this you should NOT use localtime as suggested but a core module Time::Local and its timelocal function.

BR

Replies are listed 'Best First'.
Re^3: working with time ranges that cross days
by shmem (Chancellor) on Jan 31, 2007 at 16:52 UTC
    Your reply must have been aimed at another node.
    I didn't suggest any conversion whatsoever.

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}