|
|
|
|
set time for System.CurrentTimeMillis()
Posted:
Oct 19, 2009 7:32 AM
|
|
|
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
|
|
|
|
|
|
|
Re: set time for System.CurrentTimeMillis()
Posted:
Nov 2, 2009 1:41 PM
in response to: ejw
|
|
|
As far as I know there is no way to set the System.currentTimeMillis() from Java.
Regards Johan
|
|
|
|
|