The best way is to use Jesse Vincent's Business::Hours module to set up
a business hours schedule, then use the methods (like first_after) to
quickly determine whether the current time is in the business hours
schedule.
http://search.cpan.org/~jesse/Business-Hours-0.07/lib/Business/Hours.pm
But it's also not hard to roll up your own using POSIX::localtime() and
POSIX::strftime().
Rick R.
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com
We're hiring! Come hack Perl for Best Practical:
http://bestpractical.com/about/jobs.html