change channel info style

This commit is contained in:
Li ZongYing
2023-12-28 20:30:12 +08:00
parent 72e893b73a
commit 3eb6757543
7 changed files with 93 additions and 49 deletions
@@ -0,0 +1,15 @@
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(): Int {
return (Date().time / 1000).toInt()
}
}