forked from melod1n/fast-messenger
Move from java/ to kotlin/ directory
Android 12 dynamic color usage on login screen
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package com.meloda.fast.util
|
||||
|
||||
import java.util.*
|
||||
|
||||
object TimeUtils {
|
||||
|
||||
fun removeTime(date: Date): Long {
|
||||
return Calendar.getInstance().apply {
|
||||
time = date
|
||||
this[Calendar.HOUR_OF_DAY] = 0
|
||||
this[Calendar.MINUTE] = 0
|
||||
this[Calendar.SECOND] = 0
|
||||
this[Calendar.MILLISECOND] = 0
|
||||
}.timeInMillis
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user