Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>TimeZone wise Time</title>
<script type="text/javascript">
// function to calculate local time in a different city
// given the city's UTC offset
function calcTime(city, offset) {