RichUtils / pyxis.uzuki.live.richutilskt.utils / kotlin.Long / asDateString

asDateString

@JvmOverloads fun Long.asDateString(format: String? = "yyyy-MM-dd HH:mm:ss"): String

get readable string of given timestamp.

Parameters

format - optional. default is yyyy-MM-dd HH:mm:ss (2017-06-02 19:20:00)

Return
Formatted Date