alert when hour is about to change

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
srdva59
Forum Commoner
Posts: 77
Joined: Sun Feb 15, 2009 10:58 am

alert when hour is about to change

Post 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
:)
User avatar
php_east
Forum Contributor
Posts: 453
Joined: Sun Feb 22, 2009 1:31 pm
Location: Far Far East.

Re: alert when hour is about to change

Post by php_east »

how is that again please ?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: alert when hour is about to change

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
srdva59
Forum Commoner
Posts: 77
Joined: Sun Feb 15, 2009 10:58 am

Re: alert when hour is about to change

Post 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 :)
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: alert when hour is about to change

Post by pickle »

That's a separate topic - you should post a new thread with the new question.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply