Forum Moderators: open
One important detail: a timestamp generated server-side displays the time as set on your server, which might not correspond to the time zone your visitor is in. Using Javascript will display the time the same as the user's clock.
It is important to note that nearly every computer has a clock displaying permanently in the taskbar (whatever the operating system), so you should ask yourself whether the date and time displayed on your page are really necessary or if they would just be a distraction. You might find a better use for that valuable screen real estate. :)
A server side solution that would show the date and time, *but* to the *last* half-hour, so, if you looked at the page at 14.55 today, it would show as Monday, the 11th of July at 14.30 - another example, if it helps, if you looked at the page this Thursday at 15.10, it would say Thursday, the 14th of July at 15.00
If you need any more info, just holler.
Any help appreciated.
Dexie.
Now that I've explained above, whats needed, would cgi, perl or php still be equally as good as each other? If so, are they all easy as each other to implement please?
Dexie.
You should look at the PHP date function [ca.php.net] - you can start with something like:
<?php echo date("F j, Y, g:i a");?> The "i" represents the minutes - if you want to have the time to the previous hour only you can try replacing "i" with "00" - otherwise you will need to check the value of the minutes and display "00" or "30" as required.
You might want to check out the PHP Server Side Scripting [webmasterworld.com] forum to learn more about PHP. :)