Clock in Action Script

Asked

Viewed 90 times

2

I created a clock in Action Script to use as content for Digital Signage 6 countries, but I have a problem with daylight saving time.

I used getHours to pick up the schedules and applied the difference of the zone with simple math, but gethours takes the system time.

How can I pick up a schedule online or from each country separately or at least one time with no time zone and work better daylight saving time ? Is there somewhere where I can get online hours or even create something on my server to do this ?

  • This site can help you: http://www.horacerta.com.br/, it has the hours of several countries, maybe you can use as source.

1 answer

2


If your Flash is on a system with internet connection you can consume this API -> http://timezonedb.com/api it allows you to get the time from anywhere in the world (whether normal or in daylight) plus choose the response format (between XML or JSON).

I’m considering that you have internet based on how you should distribute content to digital signage.

If you don’t have it it would be the case of ordering via network or configuring according to the machine clock in an external file.

  • Putz was exactly what I needed, I was doing with the machine clock. Thank you.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.