Update timer

Back to PHP-IRC Feature Requests

Page: 1  
From User Message Body
hery
Post #821
Member
Date: 3:35 pm, Sep 27 2008
Posts: 15


Maybe to add a way update timer on the fly

so that we ca do

Code

$this->timerClass->updateTimer("update_ini", 60*60);

Thanks



dracozny
Post #952
Member
Date: 2:46 am, Mar 17 2009
Posts: 30


Code

$seconds = date("s",time());
    if ($seconds != 00)
    {
        $wait = "60" - $seconds;
        $this->timerClass->addTimer("clockdelay", $this, "clock", "", $wait, false);
    }


you can easily add some math in there, just relies on your own creativity.

   

Back to PHP-IRC Feature Requests