Re: [Simple-evcorr-users] Scheduling context creation?

2009-12-09 Thread Tim Peiffer
I think you have addressed part of what I am asking. Using you as a sounding board - So if I read a ticket and create a log event myhost.mydomain Maintenance window scheduled 200912090800 for 3600 seconds, would I need to parse the start time, and compare to now, and use that delta in the

Re: [Simple-evcorr-users] Scheduling context creation?

2009-12-09 Thread Risto Vaarandi
$2 If you use a time_t for your starting time, then mydeltatime is: return ($1 - time) ...and if you are on Linux or have the GNU date utility installed, then you can use /bin/date the as a core part of the parsing routine. For example, /bin/date -d '20091209 0800' +%s is able to accept