All typed off the top of my head in gmail and untested:

//Get a date for the UTC time numbers will match, but will be in local time
var foreignTime:Date = new Date(CurrentTimeTicks);

//Strip our current (local) offset (check my -/+ math!)
foreignTime.time -= foreignTime.getTimeZoneOffset() * 1000 * 60;

//Convert so the foreign value appears when getting the local value (again,
check +/-)
foreignTime.time += UtcOffsetTicks * 1000 * 60;

if (IsDaylightSaving)
    foreignTime.time += 3600000;

//Now if you fetch hours, minutes, seconds from foreignTime they should
return the numbers you'd like.

I've probably got a couple of +/- switched around, and if the ticks are
seconds instead of ms knock off 3 zeros from some of those fields, but that
should give you a starting point :)

When you get the correct answer, please post it to the list in a follow-up
to this thread.

-Josh

On Mon, Jul 14, 2008 at 11:34 PM, Mark <[EMAIL PROTECTED]> wrote:

> I asked this question going into a weekend so I wanted to re-ask it
> today and see if anyone has any ideas on how to work this?
>
> Thank You,
> Mark
>
>
>
>


-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]

Reply via email to