toDefaultDateString

fun Long.toDefaultDateString(format: String, locale: Locale = Locale.US): String

Convert UNIX time to a date string which based on the time zone set in the System.

Return

A date string

Parameters

format

A date format

locale

A language locale, which the default is US.