Flash Countdown Clock in Specific Time Zone?

I am looking for a tutorial to make a countdown clock in
Flash, with days, hours, minutes and seconds.
Here's the tricky part: the countdown clock will be seen from
multiple time zones.
I have seen a couple of coutdown clock tutorials that assume
that the time is based on the time from the user's computer clock.
The event starts at 8 pm Central Time, but to users in Eastern
Time, it will look like the event starts at 8 pm Eastern Time.
What to do, what to do...

You can use TIME ZONE statement for this.
DATA: time_stamp_s TYPE string,
            time_stamp     TYPE timestamp,
            tzone              TYPE timezone,
           wf_date_conv TYPE sy-datum,
           wf_time_conv TYPE sy-uzeit.
tzone = 'CET'.
CONCATENATE sy-datlo   "Local Date
                          sy-timlo    "Local Time
                  INTO time_stamp_s.
time_stamp = time_stamp_s.
CONVERT TIME STAMP time_stamp TIME ZONE tzone INTO DATE wf_date_conv TIME wf_time_conv.
Otherwise FM IB_CONVERT_INTO_TIMESTAMP/IB_CONVERT_FROM_TIMESTAMP can bne used for same.
Edited by: Satyajit on Apr 13, 2010 1:31 PM

Similar Messages

  • How to set a specific time zone for time channel in DIADEM

    Hi,
    I'd like to know how to autmatically set a specific time zone for time channels in DIADEM.
    For example, I have stored data with corresponding time channel in UTC time on a disk which was collected in another time zone. Now I want to analyze this data and I want the time channel to show the local time in the time zone where the data was collected, and not the time in the local time zone where the computer is located.
    The time channel should also take site local summer/winter time into account. Now I'm running a script that handles it for me which adds or subtract hours according to my input. The problem is that I'm handling data from several different time zones and I'm not located in any of them and when you're running a lot of data over a greater time period, it's easy to make mistakes, especially when it comes to summer/winter time. Is there a any clever solution to this already implemented in Diadem that I have not found? 

    Hi hj77,
    No, I'm sorry, DIAdem has no time zone functionality at all.  I'm afraid you have no choice in DIAdem but to keep running your scripts.  Summer and Winter time are truly tricky, because the rules for when the changes occur are different in different countries and states within countries and also can change from year to year within the SAME country (as they did in the US a few years ago).
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Countdown to a specific time (Not Midnight)

    Hello All;
    I have to quickly make a countdown timer for a website that counts down to a specific date & time (Not midnight). I need like May 4th, 2011 at 9:10 AM.
    I used a tutorial to create a timer that counts down to midnight but need to modify it to countdown to a specific time other than midnight.
    Below is the code. Can anyone help me modify the code below. Thanks.
    Tim
    var today:Date = new Date();
    var currentYear = today.getFullYear();
    var currentTime = today.getTime();
    var targetDate:Date = new Date(currentYear,1,12);
    var targetTime = targetDate.getTime();
    if (targetTime <= 0) {
      gotoAndStop(3);
    var timeLeft = targetTime - currentTime;
    var sec = Math.floor(timeLeft/1000);
    var min = Math.floor(sec/60);
    var hrs = Math.floor(min/60);
    var days = Math.floor(hrs/24);
    sec = String(sec % 60);
    if (sec.length < 2) {
      sec = "0" + sec;
    min = String(min % 60);
    if (min.length < 2) {
      min = "0" + min;
    hrs = String(hrs % 24);
    if (hrs.length < 2) {
      hrs = "0" + hrs;
    days = String(days);
    var counter:String = days + ":" + hrs + ":" + min + ":" + sec;
    time_txt.text = counter;

    I haven't looked at the rest of the code, but if you say it works, then all you really need to do is adjust the targetDate arguments.
    The constructor for a Date object is...
    Date(year, month, date, hour, minute, second, millisecond)
    so just fill in the data you need instead of what you have....
    var targetDate:Date = new Date(year, month, date, hour, minute, second, millisecond);

  • I would like to display two system clocks for different time zones

    I would like to display a couple of time zones on my system clock. Can this be done? Like having my current location date and time and another showing the date and time for Madrid, Spain.
    If this can't be done, how do I add clocks (or calendars) to my desktop?

    In the widgets screen, click the + sign in the lower left.  This should show you the widgets you have.  World clock is the one your looking for and may not be on the first screen.  There's an arrow on the far right side to slide to the next screen.  When you find World Clock just click on it and it will add a clock.  Click again and it adds another one on top of the first.  Grab the clock anywhere on it's display and drag it to the desired location. 

  • IPhone's clock showing wrong time zone

    I just flew from Davenport, IA to Detroit -- from Central to Eastern time. When I got off the plane and turned the phone back on, its clock still showed (and still shows now) the current time in Central time. I am connected to AT&T, and have made a call. Why isn't the phone aware that it has changed time zones??
    Thanks,
    DM

    Thanks Jim. It was indeed set to "OFF," but I could've sworn I had it set to "ON" on my previous iPhone (3G). When I bought the new 3GS, I restored the settings from the old one. Maybe that setting didn't survive the journey...

  • Setting a specific time zone for start/end times?

    I tend to travel in clusters, and was frustrated on this current trip when all of my flight times were adjusted by 3 hours on my iPhone and iPad after landing in Florida from California.  But they weren't "corrected" to the appropriate local times on any of the flights... which, of course, means that all of my alerts are at the wrong time!
    Is there a way to specify which time zone an event occurs in?  i.e., start time is PST, end time is EST
    (I can see how to turn off automatic time zone changes, but that won't help me until I get home)
    Thanks!
    Chris

    In Mac OS X Lion, it's iCal > Preferences > Advanced > check Turn on Timezone Support
    In iOS 5, it's Settings > Mail, Contacts, Calendars > TIme Zone Support > on
    The start and end time are in the same zone (and that's the zone associated with the event), but iCal automatically adjusts the entry to local time in the daily and related views.  There isn't a way to have a unique timezone for the start- and the end-time in a single event.

  • Get actual time for specific time zone

    Dear experts,
    is it possible to get the actual time for a given time zone? We need to know the time of a certain plant and we are searching for a standard function module which calculates the time based on the plants time zone.
    Thanks in advance,
    David
    Edited by: David Claes on Apr 12, 2010 5:05 PM

    You can use TIME ZONE statement for this.
    DATA: time_stamp_s TYPE string,
                time_stamp     TYPE timestamp,
                tzone              TYPE timezone,
               wf_date_conv TYPE sy-datum,
               wf_time_conv TYPE sy-uzeit.
    tzone = 'CET'.
    CONCATENATE sy-datlo   "Local Date
                              sy-timlo    "Local Time
                      INTO time_stamp_s.
    time_stamp = time_stamp_s.
    CONVERT TIME STAMP time_stamp TIME ZONE tzone INTO DATE wf_date_conv TIME wf_time_conv.
    Otherwise FM IB_CONVERT_INTO_TIMESTAMP/IB_CONVERT_FROM_TIMESTAMP can bne used for same.
    Edited by: Satyajit on Apr 13, 2010 1:31 PM

  • Count Down Time Zone?

    Hey all, i have come to this fourm a few times and every time
    i posted help i got it and i got the right help to. So here i am
    back again. Now here my problem. i made this count down for a
    certain event. (yes i got help from someone) and it works fine i
    made all the images it works great,,,so i though then i thought id
    experament. So i changed my computers time zone and guess what. The
    Time changed on the count down. Can i make my count down'er', count
    down from a specific time zone so it will count down and be the
    same for everyone? so no matter what time zone you have it will
    ONLY be for a certain type of time zone? Heres my Count down so
    far;
    http://snro.ifastnet.com/wipe.html
    And heres the script i have for my count down. Can someone
    give me a better code, so it will keep my counter the exact same
    just make it count down from only 1 specific Time zone? (AS below)
    quote:
    stop();
    currentDate = new Date();
    thisYear = currentDate.getFullYear();
    // Date( year, month-1, date [, hour [, minute [, second [,
    millisecond]]]])
    eventDate = new Date(thisYear, 9, 28, 12);
    eventMillisecs = eventDate.getTime();
    counter.onEnterFrame = function(){
    currentDate = new Date();
    currentMillisecs = currentDate.getTime();
    this.msecs = eventMillisecs - currentMillisecs;
    if (this.msecs <= 0){
    play();
    return;
    this.secs = Math.floor(this.msecs/1000);
    this.mins = Math.floor(this.secs/60);
    this.hours = Math.floor(this.mins/60);
    this.days = Math.floor(this.hours/24);
    this.msecs = string(this.msecs % 1000);
    this.secs = string(this.secs % 60);
    this.mins = string(this.mins % 60);
    this.hours = string(this.hours % 24);
    this.days = string(this.days);
    while (this.msecs.length < 3) this.msecs = "0" +
    this.msecs;
    if (this.secs.length < 2) this.secs = "0" + this.secs;
    if (this.mins.length < 2) this.mins = "0" + this.mins;
    if (this.hours.length < 2) this.hours = "0" + this.hours;
    while (this.days.length < 3) this.days = "0" + this.days;
    for(movie in this){
    if (this[movie]._parent == this)
    this[movie].evaluateFrameFrom(this);
    MovieClip.prototype.evaluateFrameFrom =
    function(variableClip){
    var nameArray = this._name.split("_");
    var numberSet = variableClip[nameArray[0]];
    var character = number(nameArray[1]);
    var frame = 1 + number(numberSet.charAt(character));
    if (this._currentframe != frame) this.gotoAndStop(frame);
    Thanks!
    Edit** If you can the time zone i need it clocked to is
    (GMT-06:00) Central Time (US & Canada)

    "Pitchsole" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hey all, i have come to this fourm a few times and every
    time i posted
    > help i
    > got it and i got the right help to. So here i am back
    again. Now here my
    > problem. i made this count down for a certain event.
    (yes i got help from
    > someone) and it works fine i made all the images it
    works great,,,so i
    > though
    > then i thought id experament. So i changed my computers
    time zone and
    > guess
    > what. The Time changed on the count down. Can i make my
    count down'er',
    > count
    > down from a specific time zone so it will count down and
    be the same for
    > everyone? so no matter what time zone you have it will
    ONLY be for a
    > certain
    > type of time zone? Heres my Count down so far;
    >
    >
    http://snro.ifastnet.com/wipe.html
    >
    > And heres the script i have for my count down. Can
    someone give me a
    > better
    > code, so it will keep my counter the exact same just
    make it count down
    > from
    > only 1 specific Time zone? (AS below)
    >
    >
    quote:
    stop();
    >
    > currentDate = new Date();
    > thisYear = currentDate.getFullYear();
    >
    > // Date( year, month-1, date [, hour [, minute [, second
    > millisecond]]]])
    > eventDate = new Date(thisYear, 9, 28, 12);
    > eventMillisecs = eventDate.getTime();
    >
    > counter.onEnterFrame = function(){
    > currentDate = new Date();
    > currentMillisecs = currentDate.getTime();
    > this.msecs = eventMillisecs - currentMillisecs;
    > if (this.msecs <= 0){
    > play();
    > return;
    > }
    > this.secs = Math.floor(this.msecs/1000);
    > this.mins = Math.floor(this.secs/60);
    > this.hours = Math.floor(this.mins/60);
    > this.days = Math.floor(this.hours/24);
    > this.msecs = string(this.msecs % 1000);
    > this.secs = string(this.secs % 60);
    > this.mins = string(this.mins % 60);
    > this.hours = string(this.hours % 24);
    > this.days = string(this.days);
    >
    > while (this.msecs.length < 3) this.msecs = "0" +
    this.msecs;
    > if (this.secs.length < 2) this.secs = "0" +
    this.secs;
    > if (this.mins.length < 2) this.mins = "0" +
    this.mins;
    > if (this.hours.length < 2) this.hours = "0" +
    this.hours;
    > while (this.days.length < 3) this.days = "0" +
    this.days;
    >
    > for(movie in this){
    > if (this[movie]._parent == this)
    this[movie].evaluateFrameFrom(this);
    > }
    > };
    >
    > MovieClip.prototype.evaluateFrameFrom =
    function(variableClip){
    > var nameArray = this._name.split("_");
    > var numberSet = variableClip[nameArray[0]];
    > var character = number(nameArray[1]);
    > var frame = 1 + number(numberSet.charAt(character));
    > if (this._currentframe != frame)
    this.gotoAndStop(frame);
    > };
    >
    > Thanks!
    >
    To let you be the one to further experiment I will point you
    in the right
    direction.
    http://www.adobe.com/livedocs/flashlite/2/main/wwhelp/wwhimpl/common/html/wwhelp.htm?conte xt=LiveDocs_Parts&file=00000468.html
    Use GMT as your main reference for everyone, then offeset
    that time to your
    timezone.

  • With Time Zone Support on Calendar no longer automatically adjust to the local timezone.

    Apples support forums are riddled with Discussions about problems with being able to dicate a specific time zone for appointments. Many of these postings, as well as their corresponding solutions, are unnecessarily lenghtly when the root cause of all of this is a one very simple mistake by Apple. Right now to be able to assign a specifc timezone for an appointment using the Calendar app on the iPhone you have to have "Time Zone Support" turned on in Settings. The problem is that when you turn on this feature the Calendar app stops automatically updating the calendar to reflect the local time zone you are in. These are simply two seperate items that have no reason to be tied together. Apple could easily correct almost all of the issues people are having with this topic if it simply split this into two seperate options that users can turn on/off seprately:
    1.) Enter time zone for each appointment. YES/NO
    2.) Adjust Calendar to the local timezone. YES/NO
    It is virturally incomprehensible that Apple has not fixed this. It was clearly a mistake.

    I have this problem too and am frustrated - it's not solving no matter what i do. And now Siri is totally bonkers too on this new software update - can't even pull from my contacts when I ask her to look someone up. What the heck is going on at Apple software? Have they been hiring a bunch of arrogant, crap programmers? I am seriously thinking of not buying an iPhone again after having one for 5 years. So disappointed!!

  • Set a time field to a default time zone

    Hi there,  I would like to set a time field to attain the time zone from the default machine, so that no matter where in the world the PDF may be, it will send the xml to the server with the appropriate time relevant to the specific time zone.  Eg: I am in Australia and i need to send a time back. The time must be sent as Australian time.  Thanks  Joey

    Not quite sure what you're asking, but it sounds as though it's something you'd easily do using a BEFORE INSERT trigger on your table.

  • So is there a fix for this Time Zone bug?

    apple, is there a fix to this Time Zone bug in Calendar?

    You are not talking to Apple, just other Apple users. If you are experiencing something you think is a bug, you will have to describe it or reference some description. I am unaware of any specific Time Zone bug.

  • Time zone Inbox (user vs. server)

    We created the users and defined your specific time zone (su01), when the user login to the portal and created documents the time displayed its correct (zone depending), nevertheless when the same user access to the portal inbox, the filter is by server time zone, how can i define the inbox filter by time zone of the login user???

    Hi Egor,
    > I know, http-browser transmits time zone information
    > in http-request
    IE? If I call www.google.com, I cannot see the TZ anywhere, checked by HTTPWatch. There is also no corresponding setting within IE. You could only map prefered languages to locales, but that doesn't work really proper, for they work over different time zones.
    Also see http://www.timeanddate.com/worldclock - no automatic detection.
    Also see http://www.javaworld.com/javaforums/showflat.php?Cat=&Board=Enterprisejava&Number=12640&page=1&view=collapsed&sb=9&o=&fpart=1
    So I would suggest to use the user's time zone, and if not set, to use the server's time. It's the fault of the user admins if the time zone is not set!
    > Both functions don't return time zone information
    Right. And as said, mapping the locale to a time zone is a (bad) workaround, nothing I would advise.
    Hope it helps
    Detlev

  • Countdown Clock help

    Hello Everyone,  I am very very new to flash cs5,   a friend told me to try out the trial for it so i did and now that i've got the program i'm wondering is there anyway for me to create a Screensaver countdown clock with it?  I'm looking forward to Transformers 3 lol  And I would like to have a countdown clock of that.  It comes out July 1st 2011.  So what i would like to know is: Is there a tutorial or something that would show me how step by step how to create something like that or someone on here that could teach me how to.
    Any help is appreciated
    Fishlarge

    Hi.
    If you want a simple countdown clock and you don't want to learn
    the language to produce it yourself, then try http://www.gieson.com/Library/projects/utilities/countdown/
    There are lots of freely available flash countdown clocks out there..
    Just google "Free flash countdown counter" (without the quotes).
    Most have a description about the usage...
    Best regards
    Peter

  • New Time Zone

    Hi All
    my country, Venezuela, decided to change the time zone from UTC+4 to UTC+4:30, yes a half an Hour change
    his is another of Chavez Ideas, but my problem is that I can not set this on the Preference panels of time zone,
    I Have notice that other countries with specific time zones (australia, Iran, and some other with fraccional time zones) have been predefines in the control panes
    Does anybody know how to include a NEW TIME ZONE or do I need to wait for Apple for an UPDATE
    thanks
    Claudio

    I suspect you have to wait for the imperialists at apple to provide an update. Sorry. Compare to http://java.sun.com/javase/timezones/tzdata_versions.html, though that isn't quite what you are looking for anyway.
    Maybe you could speed things up by filing a bug report at http://developer.apple.com/bugreporter/ (see the link at item #3).
    Message was edited by: Mr.Lobotomy to add bug report info.

  • Time zone used fot GI/MAD time calculation

    Hi,
    We have been trying to define working shifts/ cutoff for shipping points. While scheduling SAP is using the user time zone to calculate the MAD time, GI time etc. I need it to use a specific time zone that I define and not the time zone of the user processing the document. There is a field for time zone at the point where we allocate the shift definition to the calendar but it is not working. Is there anyway to achieve this ? The strange part is that it is not considering the Planr or shipping point time zone , but the user time zone to do all calculations.
    Thanks,
    Hari.

    Dear Hari,
    Usually in SAP logisticss the standard is to take date and time from the
    location where the user is located, there is reasons for it for example
    imagine the case below:
    "A user is working in time zone EST (GMT-5h), the shipping point is in
    time zone CET (GMT+1h). At 11 p.m. the user enters today's date,
    May the 9th, 2011 as actual goods movement day. The system now
    calculates the date using the time zone of the shipping point and
    determines 05:00 CET as actual goods movement time. But this time
    refers to May, the 10th. After pressing <enter>, the date and time would
    again need to be adopted which is confusing for the user.
    If the date is kept unchanged, it is also not correct as then the date
    is in the past (May, the 9th, 05:00)."
    There is not a possibility to of one this system behavior in a way
    that suits fine in every situation.
    I have researched and found the following information though:
    If you enter a time in the dialogue it is independent where the user is.
    The systems takes it as time zone of the shipping point as long as the
    time zone is maintained there otherwise, the local time zone is taken.
    There is no calculation on the user input programmed as a date change
    could lead to confusion...
    Since the existence of the note 1596670 if you enter a time in the dialogue
    it is independent where the user is.
    Best Regards,
    Christian Rosa

Maybe you are looking for

  • How can I get a new rear cover for iphone (not 3G)

    I have the older iphone 16GB (not 3G). it was broken when I dropped it. I tried taking it apart, and of course, I bent the aluminum back cover of the phone and can't get it back to the exact shape it was in before I bent it. Does anyone know where I

  • Slow DNS resolution

    Folks; *I have Mac OS X Leopard 10.5.6 up to date and since few days, the DNS resolution is very slow, about 5 seconds to resolve names.* *For example :* # ping test.com *(wait 5 seconds)* PING test.com (205.178.152.103): 56 data bytes *Of course it

  • Problem in creating DLL for a LabVIEW VI

    Hi I am facing problems in creating DLL for a LabVIEW VI. Previously i had no problems in creating DLL for the VI that transmits a message from serial port to NI - PXI 7831-R Reconfigurable I/O card (configured by FPGA MOdule). When i try the same VI

  • Hide Menu bar at Transaction iview

    Hi, I hav created a Transaction(e.g:se11) iview and i m displaying it in my portal. Its displaying properly...but the problem is its displayinlg along with menu with options Menu,Save as Variant, OKCode,Back,Cancel,Execute etc., Now i dont want to di

  • Thumbnail/ Preview Question

    I have used Aperture since the start.... but i am getting a strange behaviour with thumbnails/previews.... imported raw files from a Canon 1DS MK2 in to a new project. Activity monitor shows the processing of the files (1,146) i am then getting previ