feat: dm
This commit is contained in:
6 files changed
+122
-8
No files matched your search
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright © 2024 RTAkland
|
||||
* Author: RTAkland
|
||||
* Date: 2024/9/24
|
||||
*/
|
||||
|
||||
|
||||
package cn.rtast.fancybot.util
|
||||
|
||||
import java.time.Instant
|
||||
import java.time.LocalDateTime
|
||||
import java.time.ZoneId
|
||||
|
||||
fun Long.parseTimeStamp(): LocalDateTime {
|
||||
val instant = Instant.ofEpochMilli(this)
|
||||
return LocalDateTime.ofInstant(instant, ZoneId.systemDefault())
|
||||
}
|
||||
Reference in New Issue
Block a user