On Wed, 25 Feb 2009, I wrote:
>   $y + ±5   # same as ($y - 5) | ($y + 5)   (also same as $y - ±5)
>   $y ± 5    # same as ($y - 5) .. ($y + 5)

A further question: should such ranges be [closed], (open) or [half-open)?

I would argue for half-open because then exactly one of a set of consecutive
ranges will match; back to the original question, I'd only expect one match
from:

        $time ~~ $date-yesterday
        $time ~~ $date-today
        $time ~~ $date-tomorrow

even if $time falls precisely on midnight.

-Martin

Reply via email to