Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 examining the Monastery: (15)
As of 2014-07-10 17:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (213 votes), past polls