views:

118

answers:

2

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

A: 

Show here:

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

To get the wall clock you just have to call:

System.currentTimeMillis();

Roflcoptr
+1  A: 

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

Peter Tillemans