Determine if a time is within a certain range

yep

assuming the timestamp is returning a DateTime object, just call the
hour method on that

eg.

@user.created_at.hour would return an integer that is between 0 and 23

so

@user.created_at.hour > 0 and @user.created_at.hour < 4

Gavin

http://handyrailstips.com