mirror of
https://github.com/lizongying/my-tv.git
synced 2026-10-26 14:16:29 +08:00
15 lines
325 B
Kotlin
15 lines
325 B
Kotlin
package com.lizongying.mytv
|
|
|
|
import java.text.SimpleDateFormat
|
|
import java.util.Date
|
|
import java.util.Locale
|
|
|
|
object Utils {
|
|
fun getDateFormat(format: String): String {
|
|
return SimpleDateFormat(format, Locale.CHINA).format(Date())
|
|
}
|
|
|
|
fun getDateTimestamp(): Long {
|
|
return Date().time / 1000
|
|
}
|
|
} |