The Source for Java Technology Collaboration

Home » java.net Forums » Mobile & Embedded » ME Application Developer Interest

Thread: set time for System.CurrentTimeMillis()

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 1 - Last Post: Nov 2, 2009 1:41 PM by: jaywayjohan Threads: [ Previous | Next ]
ejw

Posts: 1
set time for System.CurrentTimeMillis()
Posted: Oct 19, 2009 7:32 AM
 
  Click to reply to this thread Reply

Hi,
I am using a Cinterion Modem to pass data from field sensors through the modem unit and back to a central server. As part of this I need to timestamp the data as it passes trough the modem. Every time the modem (TC65i) is swtched on it reverts to 01-01-2002, and my system time miilis then tick from that date. I currently get the time from a time server, set and use AT+CCLK to time stamp every data transfer, but this seems a bit backwards to me, when all I think I need is system millis and a calendar function.

Is is possible to set a system time, or is there a workaround?

Many thianks in advance for any advice.

ej

jaywayjohan

Posts: 95
Re: set time for System.CurrentTimeMillis()
Posted: Nov 2, 2009 1:41 PM   in response to: ejw
 
  Click to reply to this thread Reply

As far as I know there is no way to set the System.currentTimeMillis() from Java.

Regards
Johan




 XML java.net RSS