开发者

Getting simple date and time in android

开发者 https://www.devze.com 2023-01-01 16:47 出处:网络
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:

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();

0

精彩评论

暂无评论...
验证码 换一张
取 消