Oops. :( Jim
> > On Thu, Apr 05, 2007 at 09:08:45PM -0400, Jim Bacon wrote: > > Here's the brute force logic. Doesn't take DST into account > and actually > > tests for the period of 22:00:00 - 01:59:59. > > > > my $current = DateTime->now; > > return($current->hour < 2 && $current->hour >= 22); > ............................^^ > > you meant to say || there, didn't you? >