refactored getFormattedDate
This commit is contained in:
parent
fe633f06a2
commit
f14b96fb88
1 changed files with 3 additions and 4 deletions
|
@ -73,10 +73,9 @@ object OsmandFormatter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getFormattedDate(seconds: Long): String {
|
fun getFormattedDate(seconds: Long): String =
|
||||||
val day = SimpleDateFormat(SIMPLE_DATE_FORMAT, Locale.getDefault())
|
SimpleDateFormat(SIMPLE_DATE_FORMAT, Locale.getDefault()).format(seconds * 1000L)
|
||||||
return day.format(Date(seconds * 1000L))
|
|
||||||
}
|
|
||||||
|
|
||||||
fun calculateRoundedDist(distInMeters: Double, ctx: TelegramApplication): Double {
|
fun calculateRoundedDist(distInMeters: Double, ctx: TelegramApplication): Double {
|
||||||
val mc = ctx.settings.metricsConstants
|
val mc = ctx.settings.metricsConstants
|
||||||
|
|
Loading…
Reference in a new issue