Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://939408]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-20 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found