Page 1 of 1

alert when hour is about to change

Posted: Mon Mar 30, 2009 3:59 am
by srdva59
hi,
i know that is a function in php that can say if the
hour is 20 or 21 in that moment that i ask, but i need know when the time
will change, for example i need build a function to php say
in the day: 20-11-2010 the hour will be change for more or less one hour
there is any to do that?
thanks a lot for your help
:)

Re: alert when hour is about to change

Posted: Mon Mar 30, 2009 4:03 am
by php_east
how is that again please ?

Re: alert when hour is about to change

Posted: Mon Mar 30, 2009 10:18 am
by pickle
date() can show the minutes & seconds as well. If you have a regularly scheduled cron job, you can use that function to do something when the minute is 55, for example.

Re: alert when hour is about to change

Posted: Mon Mar 30, 2009 1:53 pm
by srdva59
hi,
i want know is there is some function to know where the
daylightsaving/timesaving will ocorr with some days of diference for notify
thanks for your help :)

Re: alert when hour is about to change

Posted: Mon Mar 30, 2009 2:19 pm
by pickle
That's a separate topic - you should post a new thread with the new question.