mirror of
https://github.com/develop202/migu_video.git
synced 2025-12-18 15:55:10 +08:00
添加本地部署
This commit is contained in:
@@ -11,4 +11,9 @@ function getDateTimeString(date) {
|
||||
return `${getDateString(date)}${getTimeString(date)}`
|
||||
}
|
||||
|
||||
export { getDateString, getTimeString, getDateTimeString }
|
||||
function getDateTimeStr(date) {
|
||||
return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, "0")}-${String(date.getDate()).padStart(2, "0")} ` +
|
||||
`${String(date.getHours()).padStart(2, "0")}:${String(date.getMinutes()).padStart(2, "0")}:${String(date.getSeconds()).padStart(2, "0")}`
|
||||
}
|
||||
|
||||
export { getDateString, getTimeString, getDateTimeString, getDateTimeStr }
|
||||
|
||||
Reference in New Issue
Block a user