1 of 8

Time Operations on Android

By Moro

2 of 8

Dr, do you have any idea how to convert 2000 milliseconds to seconds on Android?

3 of 8

I know two ways...

4 of 8

First way:

5 of 8

Second way using

TimeUnit from java.util.concurrent.TimeUnit

You have a lot of time units available there too.

Such as Nanoseconds, microseconds,days, hours...

6 of 8

Dr, I need to go to the future: 2 days, 4 hours, and 12 seconds from now.

LocalDateTime

7 of 8

8 of 8

By Moro