Home arrow static arrow Java Programming [Archive] - J2ME Date object implementation?
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - J2ME Date object implementation?
This topic has 1 reply on 1 page.

Posts:66
Registered: 2/6/04
J2ME Date object implementation?  
Jun 25, 2004 8:38 AM



 
Hi All,
I hope this make sense to you too.
I have recently come accross a strange conflicts between the j2me date object implementations.
Here is what I mean.
I wrote a li'l program to create dates.
I get the time using System.getTimeInMill....it should have returned my systems current time in milli secs,however it returned the GMT current time.I am using Sun One Mobile IDE and it uses the default phone emmulator.

But when I put the same program on a cell phone, Motorolla v525, it seems that System.getTime...actually is returning the correct current system time,which in this case is current time from phone...

Is this my screw up at coding level?

Can some one shed some light on how the date object has been implemented in J2ME and/or point me to some specs where I can read about it.
BTW..the API that comes wstk2.1 does not put any light on it( or may be Ilooked at wrong place...)

Thanks
 

Posts:20
Registered: 6/17/97
Re: J2ME Date object implementation?  
Jun 25, 2004 9:28 AM (reply 1 of 1)



 
The Date from J2ME comes with the CDLC 1.1 specification.
you could have a look on it,
moreover, you could try to get the current date with :
import java.util.Date;

Date now = new Date();

 
This topic has 1 reply on 1 page.