All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.neko233.config233.utils.DateTimeUtilsForConfig233.kt Maven / Gradle / Ivy

The newest version!
package com.neko233.config233.utils

import java.text.SimpleDateFormat
import java.util.*

object DateTimeUtilsForConfig233 {
    private val dateFormat = SimpleDateFormat("yyyy-MM-dd HH:mm:ss,SSS")

    @JvmStatic
    fun curDateTimeStr(): String {
        return dateFormat.format(Date(System.currentTimeMillis()))
    }

    @JvmStatic
    fun formatDateTime(date: Date): String {
        return dateFormat.format(date)
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy