This is a simple PHP script that ensures you can display the local time and/or date, even when your web server is located in a different time zone to the date and/or time you want to display. Ideal in situations such as virtual web hosting. Presently limited (as a simple 4-line script) in that you need to update the script at daylight savings time (but very very easy to change).
Offset calculator helps you determine the difference between your local time and the server time. This is useful for adjusting scripts that output the server time by default.
The author writes "I was looking for the easiest, quickest way to add a date picker to my internal web site without having to add more javascript or a pop-up window. I found several fantastic javascripts to add calendars to the page and a few even used layers instead of pop-ups, but I was looking for something simpler. I noticed that although the javascript calendars will allow you to pick a date years away, most of my users were picking dates in the next 60 days and no more than 120 ever. So for my application I came up with this. Quick and easy you just call the function whereever you want the date dropdown to show up."
PHP-Classes for easier handling of Date-, Time-, DateTime- and Timspan-Values in different formats
can calculate, convert, display, format any form of ISO, DIN, UK, US, Unix-Timestamp, MySQL-Timestamp