formatAsString

open fun formatAsString(timestamp: Long): String

This method is used to format a timestamp as string

Return

the timestamp value formatted as String

Parameters

timestamp

: the timestamp to format


open fun formatAsString(timestamp: Long, pattern: String): String

This method is used to format a timestamp as string

Return

the timestamp value formatted as String

Parameters

pattern

: pattern to format the return date e.g. dd/MM/yyyy hh:mm:ss