[Flashcoders] Get Timezone City?

2012-05-16 Thread David Hunter
Hi All,

I'm making a screensaver / air app of a clock and one of the desired
features is to grab the city of the timezone that the computer is set to.
For example my clock is set to GMT and London, but I could set it to
Eastern Daylight Time and the city to New York or Miami.

Does anyone know if it is possible to grab the city selected associated
with the time of the computer? (I'm on a mac, not sure if the setup is the
same on a PC...)

Thanks,

David

-- 
David Hunter

www.davidhunterdesign.com
+44 (0) 7869 104 906
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Get Timezone City?

2012-05-16 Thread Karl DeSaulniers

You could use PHPs date function.

http://us.php.net/manual/en/function.date.php
http://www.w3schools.com/php/func_date_date.asp

?php
$timezone = date('T');
?

or

?php
$timezone = date('e');
?

Then flashvars it into your flash clock.
Just a thought.

Best,
Karl


On May 16, 2012, at 5:20 PM, David Hunter wrote:


Hi All,

I'm making a screensaver / air app of a clock and one of the desired
features is to grab the city of the timezone that the computer is  
set to.

For example my clock is set to GMT and London, but I could set it to
Eastern Daylight Time and the city to New York or Miami.

Does anyone know if it is possible to grab the city selected  
associated
with the time of the computer? (I'm on a mac, not sure if the setup  
is the

same on a PC...)

Thanks,

David

--
David Hunter

www.davidhunterdesign.com
+44 (0) 7869 104 906
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders