[android-developers] Re: [Help] How to get current UTC time?

2010-04-28 Thread String
On Apr 28, 7:31 am, Vincent Tsao caojunvinc...@gmail.com wrote: As you know, i can use System.currentTimeMillis() to fetch current local time, but how to convert local time to UTC time? Are you sure that currentTimeMillis() gives you local time? It's documented as the current system time in

Re: [android-developers] Re: [Help] How to get current UTC time?

2010-04-28 Thread Vincent Tsao
On Wed, Apr 28, 2010 at 3:57 PM, String sterling.ud...@googlemail.comwrote: On Apr 28, 7:31 am, Vincent Tsao caojunvinc...@gmail.com wrote: As you know, i can use System.currentTimeMillis() to fetch current local time, but how to convert local time to UTC time? Are you sure that