mirror of
https://github.com/PlayEdu/backend
synced 2026-03-10 13:10:04 +08:00
优化代码
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { assert } from "console";
|
||||
import moment from "moment";
|
||||
import { VideoParseInfo } from "../types";
|
||||
|
||||
@@ -31,7 +30,7 @@ export function timeFormat(dateStr: number) {
|
||||
"秒";
|
||||
|
||||
if (Math.floor(d.asDays()) === 0) {
|
||||
if (d.hours() == 0) {
|
||||
if (d.hours() === 0) {
|
||||
value = d.minutes() + "分" + d.seconds() + "秒";
|
||||
} else {
|
||||
value = d.hours() + "时" + d.minutes() + "分" + d.seconds() + "秒";
|
||||
|
||||
Reference in New Issue
Block a user