I currently have a clock on my website (php) that displays my local time zone.
the only reason I have it there is for my international customers. I want them to see our local time so they know when we SHOULD be online or offline.
Since some people in the world do not understand this I would like to add text "Online" and "Offline based on the current local time.
From 8am until 12 am it should say Online and from 12:00:01 to 7:59:59 it should say Offline.
Here is my code can someone please help me finish it?
I would like it in this format:Code:<?php $hourdiff = "8"; // hours diff btwn server and local time $time = date("h:i a",time() - ($hourdiff * 3600)); print ("$time"); echo <br /> ?>
Current Local Time:
12:56 am
Support Offline
Current Local Time:
10:56 am
Support Online
Thank you for your help



Reply With Quote
Bookmarks