convertFromUnixTimeStamp
fun convertFromUnixTimeStamp(unixTimeStamp: Long, locale: Locale = Locale.getDefault(), outputDatePattern: String = defaultOutputDatePattern, targetTimeZone: TimeZone = TimeZone.getDefault()): String
Helper utility for converting unix timestamp to a date string format
Return
date string following the output pattern of outputDatePattern
Parameters
unixTimeStamp
Unix based time stamp of type Long measured in milliseconds, see System.currentTimeMillis
outputDatePattern
pattern that will be used create the output, by default this is set to defaultOutputDatePattern
targetTimeZone
time zone that the output will be converted to, by default the timezone is set to whatever the current device is set to
See also
DateTimeFormatter
(https://developer.android.com/reference/java/time/format/DateTimeFormatter)