SyntaxFix
Write A Post
Hire A Developer
Questions
Tags
What is the function to get the current UTC time. I have tried with System.getCurrentTime but i get the current date and time of the device.
Thanks
This question is related to java android datetime time utc
java
android
datetime
time
utc
see my answer here:
How can I get the current date and time in UTC or GMT in Java?
I've fully tested it by changing the timezones on the emulator
Source: Stackoverflow.com