DATE AND TIME

All Web programming languages include some way to display the current date and time on an HTML page. The underlying code uses the computer's internal clock for this. If you're using a client-side language, such as JavaScript, the time displayed will be the time on the user's computer. If you're using a server-side language, such as ASP (Active Server Pages), the time displayed will be the time on the server.

You're not restricted to local time, however. You can calculate the time in any time zone on the globe, and you can also calculate time in UTC (Coordinate Universal Time). UTC is roughly the same as GMT (Greenwich Mean Time), or the time at the Greenwich meridian (longitude zero), five hours ahead of the U.S. Eastern Standard Time zone. UTC, however, is the time kept by time laboratories around the world, including the U.S. Naval Observatory, and is determined using highly precise atomic clocks.