Check the current time

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
xionhack
Forum Contributor
Posts: 100
Joined: Mon Nov 10, 2008 9:22 pm

Check the current time

Post by xionhack »

Hello. Im making a site for a radio show. I want that when the radio show is on air, to show a little button to listen live. I know how to do the button and all that. My only problem is checking if the current time is the time of the show.

The show airs every sunday from 5 pm to 8 pm and also the first month of every month it plays an extra hour from 10 am to 11 am. How can I do that? Thanks
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: Check the current time

Post by papa »

xionhack
Forum Contributor
Posts: 100
Joined: Mon Nov 10, 2008 9:22 pm

Re: Check the current time

Post by xionhack »

I was able to do everything except to know when is the first sunday of the month. How can I do that?
User avatar
Apollo
Forum Regular
Posts: 794
Joined: Wed Apr 30, 2008 2:34 am

Re: Check the current time

Post by Apollo »

xionhack wrote:I was able to do everything except to know when is the first sunday of the month. How can I do that?
Pretty much same as here
Post Reply