Why aren't Java.util.concurrent.TimeUnit types greater than SECONDS available in Android?
-
14-11-2019 - |
Question
I miss MINUTES, HOURS, DAYS
, which exist in documentaion since API level 1 (I use 7th or 2.1 version for the application).
I have read this question, where this miss was also pointed out (though, it wasn't in the question itself), but as solution making own calculations was only proposed.
I am not lazy, but I send some data to server (Java project), where TimeUnit.MINUTES
or TimeUnit.HOURS
are actively used. Just want to avoid mistakes.
Will be grateful for any help.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow