Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 monks are mute...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2017-09-24 07:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (273 votes). Check out past polls.

    Notices?