Commit c3e9376a authored by Your Name's avatar Your Name

正式包

parent b8543ad4
package com.swiftcleaner.chovey.util
import android.content.Context
import java.text.SimpleDateFormat
import java.util.Date
import java.util.Locale
/**
* 作者:马海钊
* 时间:2024/12/26 18:41
* 功能:
*/
object Utils {
fun Context.toDate(): String {
val formatter = SimpleDateFormat("yyyy-MM-dd", Locale.getDefault())
return formatter.format(Date())
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment