formatDateTime

open fun formatDateTime(@NonNull context: Context, timeInMillis: Long): String

If the given time is of a different date, display the date. If it is of the same date, display the time.

Return

The time or date.

Parameters

timeInMillis

The time to convert, in milliseconds.