问题
I am unable to get the microseconds using java.time.Instant (Instant.now()) from android.
I am getting the date time without microseconds like 2020-04-10T12:43:40.442Z from android
But when I execute a independent java program, with the use of java.time.Instant (Instant.now())
I am getting the date time with microseconds like 2020-04-10T12:43:40.442179Z
It seems the issue is with java versions in android studio. Please help me to fix this issue.
Note:
I have installed Android Studio - 3.6.1 and done the JDK 9(9.0.4) Setup in the Android studio Settings.
来源:https://stackoverflow.com/questions/61140653/android-not-able-to-get-microseconds-using-java-time-instant