我有世界时钟代码("印度","马来西亚","卡塔尔","印度尼西亚")。我需要添加伦敦时间。我不知道如何计算马来西亚,卡塔尔和印度尼西亚的时间。
function showLocalTime(container, servermode, offsetMinutes, displayversion)
{
if (!document.getElementById || !document.getElementById(container))
return;
this.container = document.getElementById(container);
this.displayversion = displayversion;
var servertimestring = '<%=DateTime.Now%>';
this.localtime = this.serverdate = new Date(servertimestring);
this.localtime.setTime(this.serverdate.getTime() + offsetMinutes 60 1000); //add user offset to server time
this.updateTime();
this.updateContainer();
}
<script type="text/javascript">
new showLocalTime("Malaysia", "server-asp", 0, "short");
new showLocalTime("Qatar", "server-asp", -300, "short");
new showLocalTime("India", "server-asp", -150, "short");
new showLocalTime("Indonesia", "server-asp", 60, "short");
</script>
上面的代码工作正常
qatar = -300,india = -150,indonesia = 60代表什么。那我怎么需要为伦敦增值呢?