Is it possible to detect change of date and/or resume from standby?

Hallo you all,
in our current project we have a java remote application and a server application connected via GPRS.
Both client and server must have a system time sinchronized with a tolerance of maximum 15 minutes.
The problem has been solved simply making a datetime check during login: server sends it's current datetime
to client and then client make the time check. All right.
The problem is that after login the user (on client app) is able to change the system time and then... the sinchronization is lost!!
My first solution: I have a background thread that each 5 seconds make a time check: if in two consecutives checks
the difference is greater that 15 mins then I assume the the user has changed the system datetime and I raise a non recoverable exception
and the client aplication is closed.
Problem: if the system goes in stand by (laptop or hand held device) then at resume I have a time difference that can be greather than 15 mins.
Question: is there a way to understand if system wake up from stand by or if a system time has been changed?
In my tests the case of system date change and the case of sysm resume from stand by are identical from point of view value of Java current date.
I found no real to this question...
Thanks in advance,
Franco.

It sounds like you're trying to synchronize multiple system clocks.
Why not using an existing solution such as NTP for this?
It sounds as if your application is trying to do many things at once.

Similar Messages

  • Apple Remote Desktop - how to change the date and time server ip address?

    Our imacs keep getting out of synch with our Windows Active Directory server and when they do, users can no longer log into the imacs. The imacs this morning were more than 5 minutes fast, for example.
    So, we have changed the date and time server on one of our imacs to our internal time server and that works fine. Now I would like to update all of the other imacs using a unix command in ARD. Can anyone tell me how to send this change? For this message, let's say our internal time server is 172.30.100.100

    Not a problem. There are a number of other system and network setup commands that you might find useful at some time. From within the Remote Desktop Admin in the Send Unix Command window type:
    networksetup -help
    systemsetup -help
    That will give you lists of the commands, including the one I posted above, with their basic syntax. They're handy to know.
    Cheers.

  • How do you change the date and time format in Pages

    I've tried changing the date and time format a number of times for Pages but it does not change.  I'm going to the System Preferences/Language and Text and Formats.  I make the changes click on OK and go back to Pages.  NO change.

    Hi Uncle,
    Page 116 of the Pages'09 User Guide: Control Click the date, Edit Date and Time.
    Date and time can also be in a table. Format the table cell.
    The User Guide is well worth a read. Download it from the Help menu in Pages.
    Regards,
    Ian.

  • Change the date and time of a photo in iPhoto?

    How can I change the date and time of a photo in iPhoto?

    Use either the Adjust time and date command or batch change time and date command
    Adjust is to fix incorrect times like wrong camera settings - batch change is to record a totally new time and date - typically for scanned photos
    Select the photo(s) and use the appropriate command for your needs
    LN

  • Changing the Date and Time of photos

    Hello,
    i have been importing images from my windows machine and want all the dates to be correct, i have seen the adjust date and time, and made the changes but under the events the dates dont change and when i click individual photos the dates and times are not changing.
    so i was wondering how do i change the time for each photo and event? can i change the time to a start and finish date rather than just one date?
    Any help with the above would be much appreciated.
    Thanks

    I have just looked at this again, i dont see an option to set both a start and end date, any ideas?
    That is not an an option - and it makes no sense
    You can do one of three things:
    1 - add a constant delta to all selected photos thereby correcting an incorrect setting on a camera and preserving the sequence and integrity of the photos dates ad times
    2 - change the date and time for all selected photos to a specific value
    3 - change the date and time for all selected photos to a base value plus an increment for each successive photo.
    There are two choices under the photos menu
    1 - adjust date and time - this adds a constant Delta to the selected photos - is is designed for correcting camera times or time zones but keeping the basic sequence
    2 - batch change date and time - this simply changes the date & time to your selected value with an option to add an increment to each
    Both have an option to modify the original photo which I do (I'm not sure why you would not want to modify the original)
    And when i go into photos, the ones that i have altered by +Photos >>> Adjust Date and Time+ still have different times and dates, any ideas?
    AS described in the iPhoto help and above
    1 - adjust date and time - this adds a constant Delta to the selected photos - is is designed for correcting camera times or time zones but keeping the basic sequence
    So after adjusting time and date all photos selected will have the time and date changed by the same amount (a constant delta) and if they were all different before they will still all be different - if they were all the same before adjustment they will still all be the same but at a different value
    LN

  • Changing the date and time in a 1240 ap

    How do you change the date and time in a Cisco 1240AG AP

    This doc should help you set the time:
    http://www.cisco.com/en/US/docs/wireless/access_point/12.3_7_JA/configuration/guide/s37adm.html#wp1036858

  • Hello! i am using ipad n i am not able to connect to itunes store.Whenever i open itunes it syas "cannot connect to itunes store".i tried resetting the network settings n also tried changing the dat and time settings as mentioned but it still doesnt work!

    hello! i am using ipad n i am not able to connect to itunes store.Whenever i open itunes it syas "cannot connect to itunes store".i tried resetting the network settings n also tried changing the dat and time settings as mentioned but it still doesnt work!please help!

    Saw this on another post.
    Applecare Senior Advisor Txx Bxxx (I have his contact info in an email he just sent) just confirmed with me that the problem people are having with the App Store not loading is an apple issue with there servers, ITS NOT YOUR IPAD so don't go restoring it!   It's not happening to everyone however but they are looking into it, its really hit or miss.
    In the meantime ...........
    The Complete Guide to Using the iTunes Store
    http://www.ilounge.com/index.php/articles/comments/the-complete-guide-to-using-t he-itunes-store/
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/TS3297
    Best Fixes for ‘Cannot Connect to iTunes Store’ Errors
    http://ipadinsight.com/ipad-tips-tricks/best-fixes-for-cannot-connect-to-itunes- store-errors/
    Try this first - Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    This works for some users. Not sure why.
    Go to Settings>General>Date and Time> Set Automatically>Off. Set the date ahead by about a year.Then see if you can connect to the store.
     Cheers, Tom

  • I can't get to update my apps it keeps on saying cannot connect to iTunes ... I changed the date and it didn't work still

    I can't get to update my apps it keeps on saying cannot connect to iTunes ... I changed the date and it didn't work still

    The Complete Guide to Using the iTunes Store
    http://www.ilounge.com/index.php/articles/comments/the-complete-guide-to-using-t he-itunes-store/
    iTunes Store: Associating a device or computer to your Apple ID
    http://support.apple.com/kb/ht4627
    Can’t connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/TS3297
    Best Fixes for ‘Cannot Connect to iTunes Store’ Errors
    http://ipadinsight.com/ipad-tips-tricks/best-fixes-for-cannot-connect-to-itunes- store-errors/
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/ht1311
    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased. http://support.apple.com/kb/ht1430
    This works for some users. Not sure why.
    Go to Settings>General>Date and Time> Set Automatically>Off. Set the date ahead by about a year.Then see if you can connect to the store.
     Cheers, Tom

  • Don't have proper privilege to change the date and time. Group Policy does not work

    Hello All,
    I have configure group policy to change date and time only administrator. The problem is Windows XP machine cannot view the calendar but windows 7 can. So i need to view the calender for windows XP machine.
    Error: you do not have proper privilege to change the date and time.  
    Please suggest.
    Thanks

    Hi Parvez,
    Before going further:
    I applied a VM Windows XP pro. When I logged in as a local admin, I can view the calendar from the right corner of desktop or from control
    panel. However, when I logged in as a normal user account, I received the same message as yours.
    For now:
    I know this is not what you want. However, for normal users to view calendar, we can consider to give
    Change System Time permissions to these users.
    In addition, regarding this topic, the following article and thread can be referred to for more information.
    You cannot set the date, time, or time zone on your computer
    http://support.microsoft.com/kb/300022/en-us
    Check windows calendar in XP pro without admin rights
    http://community.spiceworks.com/topic/100116-check-windows-calendar-in-xp-pro-without-admin-rights
    Please Note: Since the second website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Best regards,
    Frank Shen

  • Difference between "change auth data " and "expert mode" in pfcg

    Gurus ,
    i need to know , what is the difference between
    "change  authorization data "
    and
    "expert mode for profile generation" in PFCG .
    and what is the significance of the three options that we get when we choose expert mode ?

    Hi Susin,
    To change the authorization data for the transactions assigned to the role, choose Change Authorization Data or Expert Mode for Profile Generation.
    If you are generating the profile for the first time, there is no difference between the two modes.
    When you change a role, you must regenerate the authorization profile. In this case, the status of the profile generation is displayed red or yellow at the top of the Authorizations tab page.
    If the status display is red, you must perform an authorization data comparison, since the menu was changed since the last profile generation or no authorization data exists.
    If the display is yellow, the authorization data for the role was changed and saved after the last generation. The generated profile is no longer current. You need to regenerate it.
    The significance of the three options that we get when we choose expert mode is as follows:
    Choose one of the options to maintain the authorization values (in normal mode, the correct option is automatically set):
    1> Delete and recreate profile and authorizations
    All authorizations are recreated. Values which had previously been maintained, changed or entered manually are lost. Only the maintained values for organizational levels remain.
    2> Edit old status
    The last saved authorization data for the role is displayed. This is not useful, if transactions in the role menu have been changed.
    3> Read old status and compare with new data
    If you change transactions in the role menu, this option is the preconfigured. The profile generator compares the existing authorization data with the authorization default values for the menu transactions. If new authorizations are added during this process, they receive the status New. Authorizations that already existed receive the status Old.
    Note the following during the comparison:
    Values for organizational levels that are no longer required are deleted, all others are retained. If new organizational levels are added, you need to maintain them.
    The standard authorization for the object S_TCODE is always automatically filled with the current transactions from the role menu. It cannot be copied or manually changed, only deactivated.
    Thanks,
    Saby..

  • Conversion failed when converting date and/or time from character string

    Hi experts,
    I'm trying running a query in Microsoft Query but it gives the following error message:
    "conversion failed when converting date and/or time from character string"
    when asks me the data I'm inserting 31-01-2014
    i've copy the query form the forum:
    SELECT T1.CardCode, T1.CardName, T1.CreditLine, T0.RefDate, T0.Ref1 'Document Number',
         CASE  WHEN T0.TransType=13 THEN 'Invoice'
              WHEN T0.TransType=14 THEN 'Credit Note'
              WHEN T0.TransType=30 THEN 'Journal'
              WHEN T0.TransType=24 THEN 'Receipt'
              END AS 'Document Type',
         T0.DueDate, (T0.Debit- T0.Credit) 'Balance'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')<=-1),0) 'Future'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=0 and DateDiff(day, T0.DueDate,'[%1]')<=30),0) 'Current'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>30 and DateDiff(day, T0.DueDate,'[%1]')<=60),0) '31-60 Days'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>60 and DateDiff(day, T0.DueDate,'[%1]')<=90),0) '61-90 Days'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>90 and DateDiff(day, T0.DueDate,'[%1]')<=120),0) '91-120 Days'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=121),0) '121+ Days'
    FROM JDT1 T0 INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
    WHERE (T0.MthDate IS NULL OR T0.MthDate > ?) AND T0.RefDate <= ? AND T1.CardType = 'C'
    ORDER BY T1.CardCode, T0.DueDate, T0.Ref1

    Hi,
    The above error appears due to date format is differnt from SAP query generator and SQL server.
    So you need convert all date in above query to SQL server required format.
    Try to convert..let me know if not possible.
    Thanks & Regards,
    Nagarajan

  • [svn:bz-trunk] 21285: Need to change _parent, privateCall and instance properties from private to protected in order to extend this class for another project

    Revision: 21285
    Revision: 21285
    Author:   [email protected]
    Date:     2011-05-20 07:53:23 -0700 (Fri, 20 May 2011)
    Log Message:
    Need to change _parent, privateCall and instance properties from private to protected in order to extend this class for another project
    Modified Paths:
        blazeds/trunk/apps/ds-console/console/ConsoleManager.as

    Revision: 21285
    Revision: 21285
    Author:   [email protected]
    Date:     2011-05-20 07:53:23 -0700 (Fri, 20 May 2011)
    Log Message:
    Need to change _parent, privateCall and instance properties from private to protected in order to extend this class for another project
    Modified Paths:
        blazeds/trunk/apps/ds-console/console/ConsoleManager.as

  • How to know date and time information from Trace File defaultTrace.X.trc?

    Hi, all.
      i'm using EP 6.0 SP9 patch 1.
      As you know, default trace is written in the <SID>\JC00\j2ee\cluster\server0\log\defaultTrace.X.trc.
      By using the default trace formatter, it shows like the following sample messages.
    #1.5#0011110E7B2000590000000100000A100003EC71562E6EBC#1104396451585#com.sap.jms.server.ServerClientAdapter##com.sap.jms.server.ServerClientAdapter#Guest#18####716257115a3f11d9b73b0011110e7b20#SAPEngine_Application_Thread[impl:3]_23##0#0#Error#1#/Applications/JMS#Plain###JMS internal error at ServerClientAdapter! JMS Service is not started!#
      My questions are
      1. how do we retrieve the date and time information from the above message? It seems that this message has date and time info because LogViewer shows the date and time based on the above message.
      2. how do we change the above date format to easier one
    like "YYYY:MM:DD:hh:mm:ss"? i know that it can be configured from the Visual Admin --> Services --> Log Configurator but i don't know the exact place for the trace file.
      Thanks.

    Hi Sejoon,
    I use the standalone Logviewer to read the log files. Works great.
    "If you have an SAP Web Application Server Java 6.20 or below you may also get a standalone_logviewer.zip file at the SAP Service Marketplace at service.sap.com/download &#8594; SAP NetWeaver &#8594; Release ‘04. In this case JDK version 1.3 or higher must be installed on the system. The java version must be same on the server and the client.
    In the SAP Web AS Java 6.30 installation a folder named logviewer_standalone can be found under: <path Of J2EE installation>/<SysID>/JC<nr>/j2ee/admin/logviewer_standalone. Verify that the batch file logviewer.bat is installed in the directory logviewer-standalone.
    (source -> http://help.sap.com/saphelp_nw04/helpdata/en/e4/540c404a435509e10000000a1550b0/frameset.htm)
    Best wishes,
    Noel

  • [svn:osmf:] 14178: PARB changes: Remove unload and query methods from PluginManager.

    Revision: 14178
    Revision: 14178
    Author:   [email protected]
    Date:     2010-02-15 21:35:12 -0800 (Mon, 15 Feb 2010)
    Log Message:
    PARB changes: Remove unload and query methods from PluginManager.  We lack compelling use cases for those methods, but can easily re-add them later if we come across some.
    Modified Paths:
        osmf/trunk/apps/samples/framework/DynamicStreamingSample/src/DynamicStreamingSample.mxml
        osmf/trunk/apps/samples/plugins/AkamaiPluginSample/src/AkamaiPluginSample.mxml
        osmf/trunk/apps/samples/plugins/CaptioningSample/src/CaptioningSample.mxml
        osmf/trunk/framework/OSMF/org/osmf/events/PluginManagerEvent.as
        osmf/trunk/framework/OSMF/org/osmf/plugin/PluginManager.as
        osmf/trunk/framework/OSMFIntegrationTest/org/osmf/plugin/TestPluginManagerIntegration.as
        osmf/trunk/framework/OSMFTest/org/osmf/plugin/TestPluginManager.as
        osmf/trunk/plugins/CaptioningPluginTest/src/CaptioningPluginTest.mxml

  • How do I get date and time component from a DATE object?

    Hi All,
    I need to get date and time separately from a DATE object, does
    anyone know what function I should call? GetDate()? GetTime()?
    I need this in a SELECT statement.
    Thanks in advance and looking forward to your early reply.
    Regards.
    Gladywin
    30/11/2001

    Hello,
    See following SQL.
    select to_char(sysdate,'dd/mm/rrrr') today_date,
    to_char(sysdate,'hh24:mi') now_time
    from dual
    Adi

Maybe you are looking for

  • Is it possible to delete the table of contents in a pdf but keep the bookmarks?

    Is it possible to delete the table of contents in a pdf but keep the bookmarks?

  • Missing most detailed table for dimension tables

    Hi , I am getting this following error Business Model Core: [nQSError: 15003] Missing most detailed table for dimension tables: [Dim - Customer,Dim - Account Hierarchy,Dim - Account Region Hierarchy,Fact - Fins - Period Days Count]. [nQSError: 15001]

  • Unable to compile the Java Files generated by JAXB

    Hi, I have generated the Java Files for a DTD and .xjs file using JAXB. But when i tyr to compile the .java files generated i am getting errors. My DTD file is addctq.dtd <?xml version="1.0" encoding="UTF-8"?> <!ELEMENT AddCtq (Ctq*)> <!ELEMENT Ctq (

  • IDS 5.x: Is a separate configuration directory server instance even needed?

    Because iDS 5.x supports multiple database instances, why is there a need to suggest installing the directory server with a separate configuration directory server instance (on say port 390)? In large multi-tiered iDS 4.x directory server implementat

  • Audio to Movie

    It's a true drawback for me that Logic 9 in 64 bit mode can't export audio to movies. I need this a lot since I'm composing for film and need a fast way to let directors and producers hear versions of music in QT movies. I use heavy plug ins and larg