fun Long.asDateString(format: String? = "yyyy-MM-dd HH:mm:ss"): String
get readable string of given timestamp. |
|
fun Long.convertToRelativeTime(context: Context): String
convert time (in millis) into Relative Time |
|
fun Long.makeLimit(min: Long = 0, max: Long = 0): Long
Adjust the given number so that it does not go out of range with given min, max |
|
fun Long.normalizeDate(timeZone: String = "UTC"): Long
normalize the date to the beginning of the day with given timeZone it equals to Time.getJulianDay() |
|
fun Long.toNumInUnits(): String
Calcuate size into human-readable size |