×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jan 2012
    Posts
    46

    Question Time Change How?

    Hi,
    I am working on a project that sends some info to server at specific times, which set from server too. I use async timer to achive that, but now I have a problem with that, if time changed by user, I may be using wrong time at info that I send. For solution at Android client, I use elapsed time info from SystemClock, which gives time in milliseconds since phone started and server time which I get from server at every connection. But when I try to do same at symbian client, I couldn't found anything like Android's systemClock.ElapsedTime function. I searched forum and found that;

    http://www.developer.nokia.com/Commu...nge-protection

    That is nearly same problem as I have, but it seems like there is nothing I can do at 3rd edition. But it was a old thread, so is there a solution for that problem?

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: Time Change How?

    Haven't seen any public SDK API which would make any difference, anyway, you could catch the time change event, and then maybe use external services to check the actual time as suggested in: http://www.developer.nokia.com/Commu...e-network-time

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: Time Change How?

    Symbian has After timers, which do not depend on the actual clock settings. On the other hand User/RTimer::After can schedule around 35 minutes maximum (the parameter is 32-bit signed, microseconds).
    User has hardware counters too, like N/TickCount.

  4. #4
    Registered User
    Join Date
    Jan 2012
    Posts
    46

    Re: Time Change How?

    Thanks for answers, but using external services could cost much, because almost every nokia phone send timechange to timer every 30 minutes. And maybe couldn't connect to network at that point. But using RTimer::After may be the solution, but 35 minutes is very short interval for my application. I'll try to save total time for intervals and use 30 minutes timers to implement, but I think, it won't be working right.

  5. #5
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: Time Change How?

    Maybe you could also re-think the requirements. f.ex. if the requirement for the time, is not to allow going back-in-time, then the easiest solution would be to have a time stamp saved, and to compare it to current one, and seeing that old time stamp must be in past. Though this could fail at least once a year with daylight savings timezones.

Similar Threads

  1. How to change menu at run time?
    By rahul.kulshreshtha in forum Qt
    Replies: 1
    Last Post: 2010-09-23, 14:27
  2. Time change protection
    By StasV in forum Symbian
    Replies: 14
    Last Post: 2009-02-13, 15:26
  3. Change system time
    By Kaysc in forum Mobile Java General
    Replies: 1
    Last Post: 2009-02-09, 00:46
  4. Replies: 4
    Last Post: 2008-10-28, 15:12
  5. How to change the system time
    By andi99 in forum Mobile Java General
    Replies: 2
    Last Post: 2006-08-10, 15:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×