mirror of
https://github.com/lizongying/my-tv.git
synced 2026-11-21 02:46:30 +08:00
change channel info style
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user