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 <[email protected]> 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
> (1244113800000l)));
>         }
>
> }
>
> Results in:
> 13:10
>
> Am i doing something wrong here?
>
> Thanks,
> Twan
>
> On Jun 4, 7:41 pm, Jeff Sharkey <[email protected]> wrote:
>
>
>
> > > 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
> > [email protected] Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to