2015-05-21 41 views
0

它給手機的時間或手機網絡的時間或GPS衛星時間?我想把時間轉換成EST是可能的嗎?假設用戶來自世界各地?android gps getTime(),哪個時間?

+0

http://stackoverflow.com/questions/4634053/using-the-gps-locationmanager-how-to-get-the-current-time –

+0

所以gps衛星根據用戶的時區設置給出時間? – user3472537

+0

是的,檢查它可能有幫助 - http://stackoverflow.com/a/22429091/3036759 –

回答

0

由於getTime()

返回此修復程序的UTC時間(毫秒)自1月1日,1970年

您可以使用該方法以毫秒爲單位描述here從日期轉換以EST格式。