As you know, i can use System.currentTimeMillis() to fetch current local
time, but how to convert local time to UTC time?
the code below, i can get the timezone, utc_bias also can be got
Time mSavedTime = new Time();
mSavedTime.set(System.currentTimeMillis());
TimeZone mMyTimeZone = TimeZone.getTimeZone(mSavedTime.timezone);
int utc_bias = mMyTimeZone.getOffset(local_time);
my problem is i can't determine how to use this utc_bias: added or minus to
current local time to get UTC time?
--
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