Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Timestamp of last monday

by ww (Archbishop)
on Nov 19, 2011 at 21:27 UTC ( [id://939003]=note: print w/replies, xml ) Need Help??


in reply to Timestamp of last monday

And you've no doubt considered what to do in those cases in which Monday is a holiday and (iggerant) users simply run the job on their first workday of the week?

PS: Ratazong's suggestion implicitly offers an algorithm to avoid the problem above: Identify week number of current week and of the previous Monday... and if those are the same, adjust Monday_of_Week as required.

PPS: Christoforo's reply has a solution, too.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-24 10:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found