poeschlorn
poeschlorn

Reputation: 12440

Getting simple date and time in android

How can I easily get date and time as integer values in Android?

Upvotes: 2

Views: 3016

Answers (2)

Peter Tillemans
Peter Tillemans

Reputation: 35341

I guess that the getTime() function of the java.util.Date class will do the trick too.

Upvotes: 1

anon
anon

Reputation:

Show here:

http://developer.android.com/reference/android/os/SystemClock.html

To get the wall clock you just have to call:

System.currentTimeMillis();

Upvotes: 0

Related Questions