That way it will run almost in the end of the month, except for february, which will run exactly in the end of the month. So my issue should be solved by now.
Aditionally, I'd like to know if there is really anyway to make our eggies know when a month finished, even if it's a month with 30 or 31, or if it's February. Just for curiosity ... my script doesn't need to run exactly in the end of every month, but now I'm curious about it
It would be possible to write a Tcl script that runs recursively to test how close to the end of a particular month it is, using [unixtime] or [clock seconds] to get the local time and some form of [clock format] to derive the day and time of the month. Then trigger some action if it is within a preset timeframe prior to month end. Frankly, I think it would be a major waste of time and resource.
That way it will run almost in the end of the month, except for february, which will run exactly in the end of the month. So my issue should be solved by now.
Aditionally, I'd like to know if there is really anyway to make our eggies know when a month finished, even if it's a month with 30 or 31, or if it's February. Just for curiosity ... my script doesn't need to run exactly in the end of every month, but now I'm curious about it
Once again, thanks for the fast and great reply.
See you arround,
Fill
Why do you test for the end of the month before it has occured?
You only really need to know at exactly which point when the old month has expired. The easiest way to do this is simply check against first day of every new month at exactly midnight. You bind to this event instead and it's easier and more accurate.