Minor date format code cleanup
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package eu.kanade.tachiyomi.util
|
||||
|
||||
import java.text.DateFormat
|
||||
import java.util.Date
|
||||
|
||||
fun Date.toTimestampString(dateFormatter: DateFormat): String {
|
||||
val date = dateFormatter.format(this)
|
||||
val time = DateFormat.getTimeInstance(DateFormat.SHORT).format(this)
|
||||
return "$date $time"
|
||||
}
|
||||
Reference in New Issue
Block a user