2

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

2
  • This should more likely a Java question than Android. Commented Jun 2, 2010 at 7:24
  • sry, I forgot the java tag. Of course it is. Thanks Commented Jun 2, 2010 at 7:26

2 Answers 2

1

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

Sign up to request clarification or add additional context in comments.

Comments

0

Show here:

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

To get the wall clock you just have to call:

System.currentTimeMillis();

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.