• Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting local time in Midlet

 
Danish Shaukat
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !
In my midlet I use currentTmeMillis() method of System class to get a long value. This long value is used to create a Date object.I get the time as GMT. But I want to convert this to local time and display it to the user. The Date class has been ripped in CLDC so i cannot convert this to local time. Any idea how i can achieve this ?
Danish
 
Jonathan Knudsen
Author
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a stumper. You could search around and see if anyone's come up with time utilities for MIDP. Other than that you'll probably have to write it yourself.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!