1

Topic: TO set different offsets

Hello have implemented a clock from xorbin which shows me the Indian time. Can anyone please tell me how do i implement it for different time zones. (USA,UAE etc.).......  Can i do it using UTCTime or timeOffset??
Can somebody suggest  me

Last edited by ARCHANAAB (2011-08-26 12:58:56)

2

Re: TO set different offsets

Hi.

Use both. UTCTime for "reset" time to UTC (also known as GMT, or Greenwich Mean Time). Then timeOffset for time zone setting.
For example New York has time zone offset -4 hours (thats -4*3600 seconds). Use timeOffset: '-14400'

http://www.timeanddate.com/worldclock/city.html?n=179

3

Re: TO set different offsets

<p id="devDigitalClock"><a href="http://www.xorbin.com/">Digital flash clock widget</a></p>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript"><!--
    var flashvars = {
        // no parameters
    };
    swfobject.embedSWF(
        "devDigitalClock.swf",
        "devDigitalClock",
        "220",
        "120",
        "8",
        "expressInstall.swf",
        flashvars,
        {scale: "noscale", wmode: "transparent"}
    );
// --></script>

We have the above code to implement the clock. But i need to implement clock with different time zones together.(i.e; Both Indian and NEW York times has to be shown in a same page) Can you please tell how do i make it.

4

Re: TO set different offsets

UTCTime "reset" is not happening. if i make change as above Use timeOffset: '-14400' the clock is not working.......:(

5

Re: TO set different offsets

Can anyone plssssss suggest on the above.........?