[android-developers] Re: 1244113800000l results in 2 different dates?

2009-06-06 Thread ndatta
Hi Twan, Nobody is doing anything wrong. Just change your date format string from HH:mm to HH:mm z. That will print the timezone as well. Regards, Narasimha On Jun 5, 1:05 pm, twan twa...@gmail.com wrote: Hi Jeff, I think your python also does something wrong ;) From a normal plain old

[android-developers] Re: 1244113800000l results in 2 different dates?

2009-06-05 Thread twan
Hi Jeff, I think your python also does something wrong ;) From a normal plain old java application: public class TestApp { public static void main(String[] args) { System.out.println(new SimpleDateFormat(HH:mm).format(new Date (124411380l))); } } Results

[android-developers] Re: 1244113800000l results in 2 different dates?

2009-06-05 Thread Mark Murphy
twan wrote: Hi Jeff, I think your python also does something wrong ;) From a normal plain old java application: public class TestApp { public static void main(String[] args) { System.out.println(new SimpleDateFormat(HH:mm).format(new Date (124411380l)));

[android-developers] Re: 1244113800000l results in 2 different dates?

2009-06-04 Thread Saurav Mukherjee
u call that spooky... try subtracting two dates and display them using the getter functions in Date for hours, minutes, seconds... i did that for my app, n got some really weird results... got no answers man! On Thu, Jun 4, 2009 at 5:04 PM, twan twa...@gmail.com wrote: Good morning, I'm a

[android-developers] Re: 1244113800000l results in 2 different dates?

2009-06-04 Thread Jeff Sharkey
The tomcat result is the right one. No, the Android time is correct: sh-3.1$ python import time print time.strftime(%H:%M, time.gmtime(1244113800)) 11:10 -- Jeff Sharkey jshar...@android.com --~--~-~--~~~---~--~~ You received this message because you are