Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 surveying the Monastery: (9)
As of 2014-12-26 10:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls