Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: finding whether the current time is weekday & working time with Date::Manip

by Anonymous Monk
on Nov 22, 2011 at 09:49 UTC ( #939408=note: print w/ replies, xml ) Need Help??


in reply to finding whether the current time is weekday & working time with Date::Manip

This is what I was expecting, now done - thanks anyway.

&Date_Init('WorkWeekBeg=1', 'WorkWeekEnd=5', 'WorkDayBeg = 09:00', 'Wo +rkDayEnd = 17:00'); # if now is not a week day - then return 0. if (not &Date_IsWorkDay(&ParseDate("now"), 1)) { .... }


Comment on Re: finding whether the current time is weekday & working time with Date::Manip
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://939408]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2014-11-23 04:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (128 votes), past polls