Adding Time and Local Weather Data in a page

Can anybody tell me or point me to a tutorial that shows how to add the current time and weather report into a page?
Thank you
sal

The current time would be simple javascript that reads the viewers machine time. You can find that at one of the free javascript websites. As for a weather script, you might have some luck at www.weather.com or www.accuweather.com

Similar Messages

  • Getting difference between GMT time and Local time

    Folks,
    I am trying to get difference between gmt time and local time for Korea time zone.
    which should be 9 hours.
    Instead of 9, I am getting 15 hours diff.
    What am I doing wrong?
    Here's what I did to test it:
    First I set the system (Windows XP) time zone to Soul (Korea GMT+9hours) time zone.
    Then I ran the following program, and I got 15 hour diff, not 9.
    Thank you in advance!
    import java.util.*;
    public class Using_GregorianCalendar
         public static void main(String args[])
              Using_GregorianCalendar ugc = new Using_GregorianCalendar();
              ugc.getTimeDiff();
         public void getTimeDiff()
              Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("GMT"));
              Calendar cal1 = new GregorianCalendar(cal.get(Calendar.YEAR),
                                           cal.get(Calendar.MONTH),
                                           cal.get(Calendar.DATE),
                                           cal.get(Calendar.HOUR_OF_DAY),
                                           cal.get(Calendar.MINUTE),
                                                      cal.get(Calendar.SECOND));
            int gmtHour          =  cal.get(Calendar.HOUR); //(Calendar.HOUR_OF_DAY);
            int gmtHourOfDay =  cal.get(Calendar.HOUR_OF_DAY);
            int gmtMonth        =  cal.get(Calendar.MONTH);
            int gmtYear          =  cal.get(Calendar.YEAR);
            int gmtMinute       =  cal.get(Calendar.MINUTE);
            int gmtSecond     =   cal.get(Calendar.SECOND);
            int gmtDate         = cal.get(Calendar.DATE);
            Calendar localCal  = Calendar.getInstance();
            int localHourOfDay = localCal.get(Calendar.HOUR_OF_DAY);
            int timeDiff = (localHourOfDay - gmtHourOfDay);
              //Korea time is GMT + 9 hours so I should get a difference of 9
              //why am I getting difference of 15?
                 System.out.println("************** in getTimeDiff() **********************");
              System.out.println("gmtDate: "+gmtDate);
              System.out.println("gmtHour: "+gmtHour);
              System.out.println("gmtHourOfDay: "+gmtHourOfDay);
              System.out.println("localHourOfDay: "+localHourOfDay);
              System.out.println("timeDiff: "+timeDiff);
              System.out.println("**********************************************************");
         }//getTimeDiff()
    }//class Using_GregorianCalendar
    /*              here's the output of this program:
         ************** in getTimeInGMT() **********************
         gmtDate: 14
         gmtHour: 6
         gmtHourOfDay: 18
         localHourOfDay: 3
         timeDiff: -15
    */

    DrClap wrote:
    sabre150 wrote:
    Nearly correct since the Daylight saving may or may not be in effect which does depend on the date...I would simplify that to this:
    TimeZone korea = TimeZone.getTimeZone("Asia/Seoul");
    long delta = korea.getOffset(new Date().getTime());
    System.out.println(delta / (1000.0 * 60 * 60));That's assuming that the OP really meant UTC when he/she said "GMT". Most people don't realize there's a distinction and that Java's timezones are all based relative to UTC.I suspect you are right in assuming that the OP want UTC and not GMT. I figured it was better to illustrate that the method can be used for getting the time difference between any two TimeZones.

  • Server Time and Local Time (Dreamweaver) Off By 1 Hour

    How can I get Dreamweaver to show me the correct time stamp on my files on the server and my local machine? When I telnet into my server, the date and time stamp on all files is correct. My server time is set properly to ET (GMT-5). My local machine's time is properly set. I asked my sysadmin if PureFTP has any timezone settings and I was told by the sysadmin that all my server times and timezones are accurate. My sysadmin said that Drwamweaver is the culprit.
    I have lived with this for a long time, but it is extremely annoying and I would like to fix it.
    I searched high and low in the Dreamweaver option settings for some sort of timezone setting or offset -- found nothing.
    Has anyone experienced a 1-hour out-of-sync issue between a file's actual time stamp on the server and what Dreamweaver shows it as in the Remote/Local Files View?
    Thanks.

    During Daylight Savings Time.
    http://forums.adobe.com/message/3545349#3545349
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • System Time and Local Time

    Hi all,
    Our system are config to have a different time zone with the system time. Just wondering what type of fields will take the local time and which type will take system time. We found that dates like document date/time will take local time but created by date/time will take system time. Why is this so?
    We know that for job scheduling will run at system time. Is there a way to let the system know to run at the local time? Users find it very troublesome to adjust the timing.
    Rewards will be given to useful answers. Many thanks.
    Regards,
    Janet

    Hi,
    I found this info in one of the SAP sites i found this may be useful to you.
    The easiest way to prevent any time zone problems is to run everything with UTC (formerly GMT - Greenwich Mean Time). But while it’s a good idea for servers, end users will most likely complain about being confused (my family doesn’t - my home systems are on UTC to prevent the hassles with summer/winter time). And if you implement SAP using local time on the server, while your users are in different time zones, things can get slightly complicated. Just try searching in OSS with search term “sy-timlo”.
    The main problem is that some fields in SAP are stored as server local time (and date), while others use user’s local time. In general, as SAP explains in many OSS notes, any date/time that is written by the system is server local time, and any date/time that can be manually entered by users is in respective user’s time zone. To help us even more, the time zone used is not stored in documents, but only in user profile, so to be really sure which time is meant, one has to find the user who did the data entry or update, and then find the time zone and do conversion if necessary. SAP gives a good example in OSS note 636992. There, a user sitting in Japan creates a notification about, for example, machine breakdown, entering local time. Several hours later, a colleague in Germany looks at the notification and thinks that the machine has been down only a few moments, while it’s actually several hours!
    Things are enough confusing if you are analysing some problem by looking at the data. And if you are creating documents (material movements, accounting postings or production order confirmations) from ABAP programs with, for example, BAPI functions, you have to be especially careful because the system will run checks on date and time fields, with different logic. In general, the posting date (BUDAT or, as in BAPIs, POSTG_DATE) and several date/time fields like EXEC_START_DATE, EXEC_START_TIME, EXEC_FIN_DATE, EXEC_FIN_TIME, EX_CREATED_DATE/TIME in confirmations in the BAPI function BAPI_PRODORDCONF_CREATE_TT are your local date and time. While creating order confirmations, the system will check the date/time against the user local date and time and will prevent creating confirmations in the future. In contrast to PP, the BAPI to create a goods movement - BAPI_GOODSMVT_CREATE - assumes that posting date is a local date, but doesn’t complain if it’s in the future. The potential problems can be hard to find and detect: if you have small time differences, the posting date can differ only during one-two hours per date - only then you will get an error when posting an order confirmation. For all those fields mentioned above you should normally use the system fields SY-DATLO and SY-TIMLO if they have to be populated with current date and time. If the data is provided by an external system, then either the system has to care about the correct time, or your ABAP program has to do time zone conversion.
    In certain situations you can assume that if a document is being created for some plant, then the current server time can be converted into local time of the plant, if you know the time zones of both. The server’s time zone, or more exactly, its difference with UTC, can be found in the system variable SY-TZONE. To find the time zone of a plant, you can use the logic that can be found in the function CO_R0_SET_LOCAL_DATE_AND_TIME.

  • INHOUSDE PRODUCTION TIME AND BASIC START DATE

    WHAT IS THE RELATION BETWEEN INHOUSE PRODUCTION TIME AND BASIC START DATES

    Hi,
    Inhouse production Time : This is the field avl in material master, where we provide No. of days required to producce a Product / Assembly. While running MRP if you use the Scheduling as " Basic Scheduling" in MRP parameters system will take the value from Material master and do the backward scheduling and find the Basic Start and Finish dates for a Order. i.e. From the Finsh Date system subtract the Inhouse Prod time and arrive at the Baic Start Date.
    If you select the Lead time scheduling in MRP parameters then system will ignore the Inhouse prod time mentioned in Mat master and consider the Routing Timings for scheduling the Order.
    Hope this will help you.
    Regards
    radhak mk

  • WIP database central time and local time questions

    Hi,
    I have mission to develop some reports which has to point to the WIP database, as far as I know, the WIP data time is stored as the central timestamp, but our usr is accepted only with local time. As we have several sties in US with different timezone, so it is a little confusing to me how to make my report be able to recongize the correct local time simply.
    In SAP ME internal report, I search some SFC information, it always can display the correct local date time, I am interested to know how SAPME works like thi, if possible, can anyone share this method to me? or give me some good idea how I can handle this?
    Thanks a lot and best regards,
    Leon Lu

    Hi,
    In most cases ME grabs timezone associated with site (Site Maintenance). Some reports though might use client's locale from browser to make conversion.
    Thanks,
    Bakhtiyar

  • Insert or Cut Time and move automation data - how to do it?

    Hi when I cut or insert time it moves the regions but not the automation data. I have tried switching nn 'move automation with regions' but it doesn't move the automation that goes past the end f regions eg plug in settings like delay feedbacks etc.
    a) this seems to me to be really crazy - why if you had done a lot of detailed automation programming at the end of a song would you not want it to move if you cut 4 bars from earlier on in the song?
    any ideas appreciated very much!!
    best
    tommy b

    after using logic for years I have discovered a new bit and something very weird.
    New Bit:
    As well as Cut/Insert Time in the Region Menu
    there is a Cut/Insert Time in the Edit menu.
    if I start here:
    http://www.applebananacarrot.com/downloads/pre.jpg
    if I do the region Cut ( from the region menu on the arrange window):
    look what happens to the automation data on track 21
    http://www.applebananacarrot.com/downloads/postregioncut.jpg (track 21 data didn't move)
    and compare it to this one doing everything else the same but using the Cut from the main logic edit menu.
    http://www.applebananacarrot.com/downloads/posteditcut.jpg Track 21 automation data did move.
    That to me seems wrong....
    whaddya think?
    best
    tommy banana

  • Weather Channel Missing Local On The 8's and local weather info.

    I Have rebooted my box twice and still only get generic/national weather with no local info or maps for two days. According to the Weather Channel: "Your cable provider may be experiencing a technical problem with The Weather Star computer. The Weather Star is a piece of equipment located at your cable system that generates the Local On The 8s graphics for your area. " http://dw.weather.com/interact/contactus/localforecast.html Can someone please fix the box that generates the Local On The 8s graphics for the Claremont, NH area (03743)? Thank you!

     Well, it's either coincidence or someone is really on the ball - either way the local came back just 10 minutes after I posted the message above. Thanks!

  • JSP and servlets(displaying Data On JSP page)

    Hiii all
    i am new to JSP ...also to servets
    tell me hw to print my data on the JSP page,
    i can print my data on the server,that data i want to print on JSP page
    if u all have e.g's it will be very good
    Thanks in advance
    Take Care
    Rahul :)

    What do you mean "print data on a JSP?" If you simply mean display dynamic content, you should def read up both on sun's resources and other googled resources for JSP walkthroughs...

  • Remove html tags and retrieve the data on the page

    hi,
    i want some help regarding removal of all the html tags and save the text that is on that page... i am relatively new to java and dont know how to go about this problem.
    can someone plz help me out

    > hi yeah i know that there are too many posts of this
    kind....but no1 gives a solid code or idea of how to
    remove the tags.... and i being a newbie dont get wat
    they want to say...... so plz help me out here guyz
    Write in clear, grammatical, correctly-spelled language
    We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding (often enough to bet on, anyway). Answering questions for careless and sloppy thinkers is not rewarding; we'd rather spend our time elsewhere.
    So expressing your question clearly and well is important. If you can't be bothered to do that, we can't be bothered to pay attention. Spend the extra effort to polish your language. It doesn't have to be stiff or formal -- in fact, hacker culture values informal, slangy and humorous language used with precision. But it has to be precise; there has to be some indication that you're thinking and paying attention.
    Spell, punctuate, and capitalize correctly. Don't confuse "its" with "it's", "loose" with "lose", or "discrete" with "discreet". Don't TYPE IN ALL CAPS; this is read as shouting and considered rude. (All-smalls is only slightly less annoying, as it's difficult to read. Alan Cox can get away with it, but you can't.)
    More generally, if you write like a semi-literate boob you will very likely be ignored. Writing like a l33t script kiddie hax0r is the absolute kiss of death and guarantees you will receive nothing but stony silence (or, at best, a heaping helping of scorn and sarcasm) in return.
    If you are asking questions in a forum that does not use your native language, you will get a limited amount of slack for spelling and grammar errors -- but no extra slack at all for laziness (and yes, we can usually spot that difference). Also, unless you know what your respondent's languages are, write in English. Busy hackers tend to simply flush questions in languages they don't understand, and English is the working language of the Internet. By writing in English you minimize your chances that your question will be discarded unread.
    Best of luck.
    ~

  • TS1702 hi, my iPhone is a US purchased officially unlocked iPhone4. It is not jailbroken. My problem is, that apps either wont start or if they start then they quit after a short time and everything returns to the main page. I have IOS 5.1, I turn it off

    Hi, as I said in the statement, my iPhone4 is unlocked, bought in the US on July 27th last year. I had this problem before so I had it returned to the USA as they would not do anything with it here in Hungary. I got a new one without extended warranty so it would expire in a week or so. And the same problem came up again a few days ago. I try to send sms, or open mail, p r use facebook, the apps quit on me while typing sms or chatting. I turn the phone off and on but it wont help. What should I do?
    Thanks,
    Tamás

    Basics from the manual are restart, reset, restore.
    Try each of these.

  • Having trouble upgrading latest version of Firefox. Have attempted this several times and still getting message on main page that I do not have latest version. What do I need to do?

    I have attempted to upgrade latest version from main Firefox page, but still have the message on main page that I need to upgrade, that I have not upgraded to latest version. What are the exact steps I need to execute in order to have the latest upgrade? I've clicked on the "upgrade" icon and it has taken me through the steps, but still tells me I'm not upgraded. Very frustrating.

    Hey dogo1,
    The latest version of Firefox is 9.0.1, so it looks like your updates have failed. You can look at the Knowledge Base article [[Updating Firefox]] for some troubleshooting steps. Alternatively, you might just want to try installing a fresh copy of the latest version of Firefox. I would look at the Knowledge Base article [[Backing up your information]] first. That way you'll have a backup of all your bookmarks and person information.
    Then you should completely uninstall Firefox and then download a new copy from:
    http://www.mozilla.org/firefox/new/
    Hopefully this helps!

  • Adding WebDynpro and VC iviews to one single page

    Hi All
    I want to integrate Visual Composer iviews and WebDynpro iviews into single page.SO I do it??
    Please suggest me right way.

    Hi,
    When you deploy a VC model it automatically creates an iView for you.
    After you deploy a Web Dynpro application you can create a Web Dynpro iView using the iView template wizard. See <a href="http://help.sap.com/saphelp_nw70/helpdata/en/91/0d653f0c9fa075e10000000a114084/frameset.htm">here</a> for detailed process.
    Once created both iViews you can simply delta-link them to a page you create. See <a href="http://help.sap.com/saphelp_nw70/helpdata/en/db/b8df3d48b05d5ae10000000a11405a/frameset.htm">here</a> how to create a portal page.
    Hope it helps,
    Roy

  • Hi add fields in ztable user name system time and date urgent

    i have to add three new fields in my z table
    a)user name
    b)system time
    c)date
    suppose if anyone update my ztable then the above three fields should catch the values as which user change the ztable at what time and on which date
    plzzzzzz help
    urgent
    saurabh

    To create the fields use the following field types.
    CPUTD - for Date
    CPUTM - for Time
    USNAM - User name.
    when updating the table pass the system variable.
    sy-datum - for date
    sy-uzeit - for time
    sy-uname - for user name

  • Reset while loop with time and button?

    I am trying to get the while loop to stop and reset with a button or if time runs out. So when I switch the button it should stop the indicator; when I switch the button back on it should reset the time and start reading data again. Likewise, when time runs out it should stop the indicator and I want to flip the switch to start a new run and reset the time again. I have attached my vi for some clearification. If you have trouble understanding please let me know and Ill try and explain more. Thanks.
    Attachments:
    reseting_time_whlloop.vi ‏70 KB

    Relient wrote:
    I know my program is not efficient at all, Im inexperienced with labview and my company needs it soon so I'm trying to get it out quick. Attached is what I have so far. It is very messy!!  However it is nearly working how we want. The producer/ consumer design is needed because I am implementing this into my other program and each loop  has a different job than the other loops. This is just a mock version as I am trying to figure out the process.
    The stop buttons aren't needed but the button labeled boolean should reset the time and stop the run. When the run is stopped I want to re-enter a 'test time' and hit the button again for a new run. I just need to be able to reset the original time... Is the producer/consumer the best way to connect while loops because it seems messy?
    Again sorry if it is hard to follow and if its not the best way to go about it; I'm doing the best with what I know. Thanks for the help.
    I realize you may need this soon but you will regret it later (or the next person to touch this code) when you need to touch it again. It is overly comnplicated, messy and not very well designed. Doing a bad job quickly is never the right answer. A little extra time spent up front to do it right can save tons more time later on.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Maybe you are looking for