Forum Moderators: coopster
the script runs daily. the date that the script needs to calculate is always the next monday e.g. if the script ran today (28/8/2003) it will use the date 1/9/2003 for this monday coming. now it needs to do every day apart from sunday on a sunday it needs to get the next monday. e.g. if i ran it this sunday (31/8/2003) it will need the date (8/9/2003) you follow me? :)
i for some reason can't get my heard round a simple efficiant way to do this, any help would be appreciated!
thanks
Here's the basic idea of what you want in perl:
($sec,$min,$hour,$mday,$mon,$year,$wday) = (gmtime(time()+592200))[0,1,2,3,4,5,6];
That's the date/time one week from today.