How to get current Date (day month and year) and time (hour, minutes and seconds) all in local time in Kotlin?
I tried through LocalDateTime.now() but it is
LocalDateTime.now()
I use this to fetch data from API every 20 seconds
private fun isFetchNeeded(savedAt: Long): Boolean { return savedAt + 20000 < System.currentTimeMillis() }