开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜