Displaying Live Server time

I have a JSP page that i want to display a live display of the servers date and time (hours minute seconds)
what would be the best way about doing this?
thanks kindly
Tom

A quick google for javascript clock comes up with something:
http://www.google.com/search?hl=en&q=javascript+clock&meta=
http://www.javascript-page.com/clock.html
The only thing that would have to change is to set the date as the server date, rather than the client date.
var tDate = new Date(<%= System.currentTimeMillis() %>);This would be set to the server time at the time of serving the page. It would probably take a few seconds to transmit/render on the client machine.
How accurate do you need this clock to be?

Similar Messages

  • I need to display my server time...

    All that I need is just to display my server time... I could
    achieve once using php, but then I am stucked.... ! how ? well....
    cache memory is harder than I believed before... please all your
    help will be so helpful !
    thanks in advance,

    yes, that is what I've done.... but then it displays the time
    correctly ONCE, it does not update itself... then, if I navigate
    the website and the come back to the same page where the"clock" is,
    time is the same than before, because of the cacché memory
    that keeps the value and does not let me request server again.... I
    needto find the way to request, not every second, because it would
    require a lot or resources, but every minute at least.... or make a
    code form a timer in flash that will start with the time
    requested... in this case, it will anyway be necessary to request
    the PHP everytime I come back to this page... but ... How do I
    achieve it ? I have used many "cache-killers" methods, but
    nothing... !
    I will appreciate your comments, thanks in advance,
    Sw. Jiten

  • Display application server time and date on GUI screen.

    Hi experts,
       My client's requirenment is to display the application server time and date on the on GUI screen
       pls give the step by step procedure.
    Thanks in advance.
    Abhishek

    Hi,
    For TIME purpose,
    Fixed Length  6
    Format  u2018HHMMSSu2019
    DATA  times  TYPE  T.
    times  =  sy-uzeit.
    WRITE  times.
    For DATE purpose
    Fixed Length  8
    Include Representation  u2018YYYYMMDDu2019
    DATA  today  TYPE  D.
    today  =  sy-datum.
    WRITE  today.
    today  =  u201819991231u2019.
    WRITE  today.
    Regards,
    Anki Reddy

  • How to display application server date and time?

    Hi Friends,
                    I am getting error when i am trying to display default date,time and client.
    I have designed a screen where DATE, TIME and CLIENT are 3 fields in the screen this 3 fields i have to display defaultly date,time and client of the application server.
    In the data declarations i have declared like...
    DATA: DATE LIKE SY-DATUM,
               TIME LIKE SY-UZEIT,
              CLIENT LIKE SY-MANDT.
    In the PBO screen source code i am writeing like...
    write: 'DATE', SY-DATUM, / 'TIME', SY-UZEIT, / 'CLIENT', SY-MANDT.
    But i am not able to display the output please can anyone point my mistake where i am going useful will be rewarded.
    Thks

    Hi Reddy,
    I will tell u how to get this done .
    Check all these screen shots .No work at all .
    [Screen shot 1|http://bp3.blogger.com/_O5f8iAlgdNQ/R-icwCm1qvI/AAAAAAAAA9k/7gshn3AKOZ0/s1600-h/date1-715845.jpg]
    [Screen shot 2.|http://bp1.blogger.com/_O5f8iAlgdNQ/R-icwim1qwI/AAAAAAAAA9s/QMtdiWyB-nY/s1600-h/date2-718517.jpg]
    [Screen shot 3|http://bp2.blogger.com/_O5f8iAlgdNQ/R-icwym1qxI/AAAAAAAAA90/4GnH-bwAPEo/s1600-h/date3-719013.jpg]
    There is no work at all . only onething what u have to do is, give field length 8 on the screen for Time field. thats it .
    Regards,
    Venkat.O

  • JSP page display wrong time when compared to the server time

    Hi,
    This problem seems to weird but it is happening
    I have web application running where time is displayed in the page. In this application time is very critical. Currently, time is an hour behind the orginal time.
    I checked the server it is displaying proper time.
    As a matter of troubleshooting, I wrote a java program and run the program in the same server, where the application is running. The java program returns me proper time , but JSP is still displaying time an hour behind. To trouble shoot further, I created a test jsp page to just display the time and accessed the time and the jsp displayed wrong time as well, an hour behind.
    I am running[ tomcat 4.0.3 and j2sdk1.4.3 in suse linux enterprise server 9.0
    My Java program
    import java.util.*;
    import java.text.*;
    public class TestDate
    public static void main(String s[])
         try{
              DateFormat DF = new SimpleDateFormat( "dd/MM/yyyy");
    DateFormat DT = new SimpleDateFormat("hh:mm aa");
              SimpleDateFormat fmt=new SimpleDateFormat("HH.mm");
              Calendar cal= Calendar.getInstance();
              java.util.Date dt=cal.getTime();
              String curdt=DT.format(dt);
              System.out.println("Server Time" + curdt + "\n");
              int hh = cal.get(Calendar.HOUR);
              int mm = cal.get(Calendar.MINUTE);
              int aa = cal.get(Calendar.AM_PM);
              System.out.println("Time" + hh +":"+mm+":"+aa+"\n");
         }catch(Exception e) {
         e.printStackTrace();
    This display Time3:30:1
    My JSP Page
    <%@ page import="java.util.*,java.text.*"%>
    <%
    Calendar calen;
    calen = Calendar.getInstance();
    int hh=calen.get(Calendar.HOUR);
         int mm=calen.get(Calendar.MINUTE);
         int aa=calen.get(Calendar.AM_PM);
    %>
    <%=hh%> <%=mm%> <%=aa%>
    This display 2 30 1
    When I run Date in linux server it gives 3:30 PM EST 2004
    I am really confused, why this is happening, If you have any solutions or idea please post the solution.

    My guess is that the weirdness is caused by Daylight savings time.
    I will presume that you and the server are in the same timezone :-)
    Alternatively it could be caused by getting a different Locale.
    Try the following
    Print out "date.getTime()" value (ie long representing number of millis)
    They should be the same (or close) in both the app and in JSP
    Try simple date format in your JSP as well - what does that result in?
    Print the calendar object, and look for the difference.
    It might be in Locale, Timezone, or whether DST is set or not.
    Hope this helps,
    evnafets

  • Displaying Server time in portal

    Hi All,
    I would like to display server time in portal i have followed below document link to display it but i am unable to get it
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00cfee3a-5369-2c10-a2a3-dbadc322065c?QuickLink=index&overridelayout=true
    Please provide your inputs....
    Thanks,
    Rahul.

    Hi Rahul,
    As you already know about the masthead.jsp file, the java part is compiled and executed on the server side.
    So you can just use the "new Date()" in the java part (inside <%).
    Then you can easily retrieve the date and some other like year, month, etc from that.
    If you only need milliseconds and want to calculate yourself, you can use System.currentTimeMillis().
    Regards,
    Vijay.

  • Dreamweaver CS6 edits to old Front Page site display in preview browser but NOT on live server site.

    Howdy Folks,
    My Dreamweaver CS6 edits to old Front Page site changes display in preview browser OK …But will NOT display on live server site.
    To anyone who can step up to the microphone and speak “solution” I will be much grateful?
    Bob MacDonald / VIPpromotions

    Are you sure you are uploading the pages to the correct location?
    Could you post a screen capture of your expanded files window, showing the remote server and local file structures?
    I'm guessing they're not identical and that you may be uploading to a redundant root folder.

  • XBOX Live and Time Capsule Configurations

    I've been searching now for just about an hour online, and unfortunately my head is spinning just a bit trying to figure out how to configure my XBOX Live with Time Capsule.  In order to allow for Open access (versus Moderate), it seems as though some manual configurations need to be made so the XBOX and Time Capsule play well together.  But the thing I am unable to figure out is...HOW DO I DO THIS?!  Specifically, what are the steps I must take to configure Airport and/or XBOX?  What information do I need from the XBOX?  I've been reading about port forwarding, which seems to be the solution, but I really am not familiar with how this is done on Time Capsule.  So for those of you with the know-how and patience to write a play-by-play for dummies from the very beginning to the point where all should work, I'd appreciate it.
    Just a quick insight to my network...I have Time Capsule connected to my ISP modem.  Thank you!

    And isn't the "host device" and "base station" the same thing?
    No, host device is the box that is the server you are trying to map to.. base station is the Airport Extreme as he is writing more to that market.. TC is the same though.
    Just port forward the standard ports for xbox live.. I do not believe all of these are necessary.
    http://support.xbox.com/en-US/xbox-live/connecting/network-ports-used-xbox-live
    Xbox LIVE requires the following ports to be open:
    Port 88 (UDP)
    Port 3074 (UDP and TCP)
    Port 53 (UDP and TCP)
    Port 80 (TCP)
    Make sure you lock the IP of the xbox .. using dhcp reservations in the TC is the best but on the xbox will also work.. the rest should be straight forward.
    Tell us a bit more.. What model TC do you have? A1xxx from the base please??
    What is the ISP modem? Is it also a router.. if so consider hard using the router in the modem.. if it is upnp so xbox can work automagically .. rather than killing yourself mapping ports.. the advantage of upnp is more than one xbox can work on the same LAN.. you can never do this manually forwarding ports.
    What Airport utility are you running? Do you have access to v5 utility? If not I can give instructions to load it on Mountain Lion.
    What firmware is the TC on? Lots of issues with 7.6.3 ie the latest one.. so 7.6.1 is better alternative. Always and in some earlier TC then 7.5.2 is much better again.

  • ICO file not displaying at run time?

    Hello Experts,
    I an using fusion 11.1.2.1 32 bit. I have Copied the Icons as well as GIF files in C:\Oracle\Middleware\Oracle_FRHome1\forms\java folder.
    At button property i set Iconic to yes
    and file = addrow
    Icon not display at run time.
    but when i set file = abc.GIF
    image is displaying at run time.
    My doubt is that ICO file not displaying at run time while GIF file are displaying.
    Do i need to change configuration ?
    Please do the needful.
    Thanks
    Yash

    Hi Yash,
    First Try this steps
    To resolve this issue, follow these steps:
    Double-click My Computer, and then click Options on the View menu.
    Verify that the Icon file type appears on the File Types tab. If the Icon file type does not appear in the Registered File Types box, skip to step 10.
    Click Icon in the Registered File Types box, and then click Edit.
    Verify that the following settings exist, and then click OK:
    The Description Of Type box contains Icon.
    If there is a Confirm Open After Download check box, it should be selected.
    If the settings do not appear exactly as listed in step 4, click Remove, click Yes, and then click OK. If the settings do appear as listed in step 4, skip to step 10.
    Click New Type.
    In the Description Of Type box, type Icon.
    In the Associated Extension box, type ICO.
    Click OK, and then click Close.
    Use Registry Editor to view theHKEY_CLASSES_ROOT\.icokey, and then verify that the default string contains the following value:icofileIf the .ico key does not exist, create it, and then insert the value listed above. If any other values exist in the .ico key, delete them.
    Use Registry Editor to view theHKEY_CLASSES_ROOT\icofilekey, and then verify that the default string contains the following value:iconIf the icofile key does not exist, create it, and then insert the value listed above. If any other values exist, delete them.
    Create a new key in the icofile key called DefaultIcon , and type %1 as this key's default value.
    Quit Registry Editor, and then restart your computer.
    Second Try this
    Simple way
    Copy your images to:
    1
    c:\Oracle\Middleware\as_1\forms\java\ 
    Notes:
    - Icon files may not be supported.
    - In case of a Java security issue when using gif images, you will need to create a jar file and sign it with oracles sign-tool (see below, point 6).
    - In case you having trouble with oracle’s sign-tool, do it directly with java’s
    Recommended way
    1. Create a “icons” folder and place all your gifs in there
    i.e. “c:\Oracle\Middleware\as_1\forms\java\<icons>”
    2. From within icons folder make a jar file of all the gif images:
    1
    jar -cvf frmicons.jar *.gif 
    3. Copy this new jar into “c:\Oracle\Middleware\as_1\forms\java\”
    4. Edit/update formsweb.cfg file:
    path = c:\Oracle\Middleware\user_projects\domains\<my_domain>\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_11.1.1\config\formsweb.cfg  …to update/include:
    1
    2
    3
    4
    5
    6
    7
    8
    9
    # Forms applet parameter 
    codebase=/forms/java
    # Forms applet parameter
    imageBase=codebase
    # Forms applet archive setting for other clients (Sun Java Plugin...etc)
    archive=frmall.jar,frmicons.jar
    # Forms applet archive setting for JInitiator
    archive_jini=frmall_jinit.jar,frmicons.jar
    5. Edit/update Registry.dat file:
    path = c:\Oracle\Middleware\user_projects\domains\<my_domain>\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_11.1.1\config\forms\registry\oracle\forms\registry\Registry.dat
    1
    2
    default.icons.iconpath=icons/ 
    default.icons.iconextension=gif
    At this point your icons should work normally, but if you get a security check of Java for gif files then proceed to the next step to fix this. TIP: May need to restart the weblogic/forms server for changes to take effect.
    6. Sign your jar file with oracles sign_webutil.bat sign-tool.
    path = c:\Oracle\Middleware\asinst_1\bin\sign_webutil.bat
    Firstly, you need to edit the sign_webutil.bat as follows:
    1
    2
    3
    SET KEYSTORE_PASSWORD=my_password 
    SET JAR_KEY=webutil2 # will need to change for every run
    SET JAR_KEY_PASSWORD=my_password
    Secondly, set the environment path and finally run the command:
    1
    2
    3
    set path=c:\Oracle\Middleware\as_1\jdk\bin 
    cd c:\Oracle\Middleware\asinst_1\bin\
    sign_webutil c:\Oracle\Middleware\as_1\forms\java\my_icons.jar
    This will create your signed jar file. Once initialized from the web-app it should ask the user to “Trust” the certificate and never prompt again.
    Other issues you may encounter and may need to edit/update the following files/registry entries as well:
    formsweb.cfg
    path = c:\Oracle\Middleware\user_projects\domains\<my_domain>\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_11.1.1\config\formsweb.cfg
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    # Forms applet parameter 
    codebase=/forms/java
    # Forms applet parameter
    imageBase=codebase
    # Forms applet archive setting for other clients (Sun Java Plugin, ...etc)
    archive=frmall.jar, my_icons.jar
    ...or
    # Forms applet archive setting for JInitiator
    archive_jini=frmall_jinit.jar, my_icons.jar
    Registry.dat
    path = c:\Oracle\Middleware\user_projects\domains\<my_domain>\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_11.1.1\config\forms\registry\oracle\forms\registry\Registry.dat
    1
    2
    default.icons.iconpath=/forms/java 
    default.icons.iconextension=gif
    Registry entries:
    1
    2
    UI_ICON:<path_to_icons_dir> 
    UI_ICON_EXTENSION: "gif": ".gif" "ico": ".ico"
    Credits and further information can be tracked for icons issue here and for jar file creation here.
    Hope this will help.

  • Uploading updated file to live server

    Hi there,
    DW 8.0.2
    Develop Local sites on C:\sites\all-my-sites
    Test on C:\Inetpub\wwwroot\all-my-sites
    Ever since I have been using DW (4 years now), I have tried
    to remember
    what files I changed and updated them to the live server with
    FTP.
    Sometimes it gets to much to remember and I then upload a
    whole folder.
    Is there any other way to do this? which can save me a lot of
    time.
    Regards,
    Deon

    In article <e5eccm$bmk$[email protected]>,
    Deon <[email protected]> wrote:
    > Hi there,
    >
    > DW 8.0.2
    >
    > Develop Local sites on C:\sites\all-my-sites
    > Test on C:\Inetpub\wwwroot\all-my-sites
    >
    > Ever since I have been using DW (4 years now), I have
    tried to remember
    > what files I changed and updated them to the live server
    with FTP.
    > Sometimes it gets to much to remember and I then upload
    a whole folder.
    >
    > Is there any other way to do this? which can save me a
    lot of time.
    >
    > Regards,
    > Deon
    Why not use the synchronize function? That way you never need
    to
    remember what was just update and where it lives. DW will
    check over the
    site and show a list of all files it thinks should be
    updated. If you
    don't want one changed, option to not update is there.

  • ITS VERY URGENT HEAVY ERROR GOT IN LIVE SERVER

    DEAR EXPERTS,
    WHILE EXECUTION OF QUERY I GOT ERROR AT LIVE SERVER.
    An Oracle ORA-00600 [729] : indicates a memory leak in the UGA. Setting diagnostic events 10262 ignores this error, that is, no ORA-00600 is produced even if a memory leak is detected.
    ORA-00600 [16365] : indicates a Half Duplex Violation. Shared servers and dispatchers cannot both be writing to the same virtual curcuit at the same time because they communicate with a half-duplex protocol (TTC protocol).
    ORA-00600 [kghpih:ds] : and ORA-00600 [17175] may occur in oracle 9.2.0.6 when two processes work on the same library cache object. fixed in oracle 9.2.0.7.. Note:300604.1
    An Oracle ORA-00600 [3020] : Bug.2322620 - RECOVERY HALTED ON PHYSICAL STANDBY WITH ORA-600 AND ORA-10564 Details: ORA-600 [3020] can occur on recovery of LOB data.Fixed in 8.1.7.5 PAtch available. This error occurred on our database recovery on the primary server.
    ora-00600 [12333] : Most probably a network error that may have caused bad data to be received or the client application may have sent the wrong data in the network buffer.
    Oracle ORA-00600 [12700] : Indicates corruption in index, table or the mapping between them. Upon this discovery, oracle marks the whole block as corrupt and users will not have normal access to the data from the corrupted block. This can also break referntial integrity and should be referred to oracle.
    ORA-00600 [lxhcsn] : Shutdown may dump ORA-7445. Known Bug 2311529

    As said earlier, you need to purchase the Oracle software and have the support contract with the Oracle support. Then you get the registration details to metalink.
    Is your live server where error happend is not under oracle support contract?

  • Time Series Line will shown Obiee server time while only one value on chart

    2012/7/3 :
    I mean if in the chart there is only one point ,then this point will be on the vertical axis and the date of this point will be the original point even the date you selected if before this date ,
    at this situation in the original point there will show current time on obiee server, does this is a bug?
    2012/6/28:
    In the time series line , if there only one point have value and no line displaying, then the chart will show the obiee server time when the query is executed like "02:10:00 AM" it will shown on the ordinate origin .
    Can this time be remove from the chart or it is a bug?
    Edited by: Yu Yang on 2012-7-2 下午7:58

    Hi Yang,
    Yes looks like a bug, I could not find any way to hide server time.
    Regards,
    Dpka

  • IPhone auto-set time is 1 min slow to time-server time.

    I have the problem that my iPhone is 1 min slow... always (when auto-set by network). I live in the Portland Oregon area, and I do not believe the issue is with AT&Ts towers putting out the wrong time. As my co-workers with the 3G iPhone display the correct time. Why is this?

    chrisrcarlson wrote:
    I do not believe the issue is with AT&Ts towers putting out the wrong time. As my co-workers with the 3G iPhone display the correct time.
    Still quite likely on AT&T's end. The time data is transmitted separately on the EDGE vs. the 3G networks. An iPhone 3G user in a recent thread described seeing different time/date on EDGE vs. 3G (toggling the 3G access on and off).
    http://discussions.apple.com/thread.jspa?threadID=1984418

  • Disks Not Displayed in Server Manager 2012 After Upgrade

    I have two identical IBM x3650 M3 servers with the M5014 RAID controller installed. The internal SAS drives are configured with three RAID 5 logical drives, basically a C:, D:, and E:. They also have an external eSATA drive with a Silicon Image eSATA
    card installed that is used for backup. Both servers were upgraded from Server 2008R2 to 2012R2. Both of the server's firmware was updated prior to the upgrade and are using the same versions.
    On the first server, all of the RAID controller's logical drives are displayed under Server Manger > File and Storage Services > Volumes > Disks. All of the volumes on these drives and the eSATA drive are displayed correctly under Server
    Manger > File and Storage Services > Volumes.
    On the second server, all of the volumes correctly displayed under Server Manger > File and Storage Services > Volumes. However, only the first logical drive is displayed under Server Manger > File and Storage Services > Volumes
    > Disks. The other two logical drives are not displayed. The drives show up correctly under Disk Management and Device Manager. All of the data and shares are accessable and the server functions like it did before the upgrade. While it doesn't seem
    critical at the moment, I would like to find out why the logical drives are not being displayed.

    Hi,
    Did you have a failover cluster with a highly available storage solution that uses LSI MegaRAID controllers and use Server Manager to manage the storage using the LSI SMI-S storage provider? If so, the associated physical disks may not appear correctly in Server
    Manager when you create storage pools or virtual disks from the storage pools. 
    To work around this issue, run the following Windows PowerShell cmdlet on all nodes, and then refresh the Server Manager UI: 
    Update-StorageProviderCache –DiscoveryLevel Full
    For more detailed information, please refer to the article below:
    Known Issues: File and Storage Services in Windows Server 2012
    http://social.technet.microsoft.com/wiki/contents/articles/13392.known-issues-file-and-storage-services-in-windows-server-2012.aspx
    Best Regards,
    Mandy 
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Backing up a live server

    Hi, it's my understanding that using Time Machine is a no-no on an OS X server running OD.
    What are the current favorite schemes/software for backuping up a live OS X server? - Lewis

    Backing up a live server isn't the issue. What is an issue is backing up live services - there is a difference.
    In other words, what matters is the specific services you're running on your server since each of them may have pre-requisites for backing up.
    For example - Apache doesn't care - copy the site configuration files and content as you like. MySQL, on the other hand, cannot be backed-up live since the data is never at rest.
    So you need to examine which services you are running on your machine in order to determine how best to backup your server.

Maybe you are looking for

  • Multiple Apple ID + iPod Synching

    Dec'2010 got iPod Touch and created Apple ID to use with iTunes.  Made purchases of music & apps. Mar'2011 changed cable/internet companies.  Could no longer use that email for ID or responses as I no longer had access to that email account. Created

  • Smtp in Hangs for every fews days.

    I am running iPlanet Messaging Server 5.2 sp1 on solaris 2.8 with kernel patch level 23 . For every few days say for 3-4 days once smtp process stops hanging. When I do a telnet to port 25 , it just stop as "Escape character is '^]'." It is not displ

  • RAW image and preview dramatically different

    I'm using Aperture 2.1 and am recently finding myself extremely unsatisfied with the rendering of my RAW images created with my Nikon D50. I am shooting in just RAW (NEF) and sRGB, and am exposing for what I am seeing on the back of my camera. At tim

  • Dimensions and viewing the cube problem

    hi there, I have a problem viewing the OLAP cube in excel with OracleBI add on i see the hierarcy gone for a toss, when i view with ROLAP in enterprise manager 9.6 it seems to be fine. i have the dimension table structure as follows ID CODE OPERATOR

  • Task Scheduler wont run when set to "Run whether user is logged on or not"

    Hi I have two 2008 R2 servers with the same task and pretty much the same powershell script the schedule is running.  The powershell just runs a daily snapshot of the server.  One server it runs fine with  "Run whether user is logged on or not" selec