Getting simple date and time in android
How can I easily get date and time as integer values开发者_运维知识库 in Android?
I guess that the getTime() function of the java.util.Date class will do the trick too.
Show here:
http://developer.android.com/reference/android/os/SystemClock.html
To get the wall clock you just have to call:
System.currentTimeMillis();
精彩评论