|
|
| Just another Perl shrine | |
| PerlMonks |
Re: How long 'tween now and then?by chromatic (Archbishop) |
| on Sep 13, 2000 at 04:02 UTC ( #32215=note: print w/ replies, xml ) | Need Help?? |
|
If you can keep a tiny little data file around, you only need to figure out the epoch seconds for one invocation of the script. Just add (60 * 60 * 24) seconds to it once a day, and generate the new sleep value with a simple subtraction statement. I'd do something like:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||