Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wuyanan
2024-08-13 16:12:03 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bf31f8d757d5693d64492096f688ab979db7c5e3
bf31f8d7
1 parent
b2a8b961
ref |> 竖屏直播时长不足一分钟,显示为0时1分
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
sight_harmony/commons/wdKit/src/main/ets/utils/DateTimeUtils.ts
sight_harmony/commons/wdKit/src/main/ets/utils/DateTimeUtils.ts
View file @
bf31f8d
...
...
@@ -504,10 +504,10 @@ export class DateTimeUtils {
}
static
liveDurationSecondToTime
(
seconds
:
number
)
{
let
time
=
''
if
(
seconds
<
60
)
{
return
'0时
0
分'
return
'0时
1
分'
}
let
time
=
''
let
days
=
Math
.
floor
(
seconds
/
this
.
SECONDS_IN_DAY
)
let
hours
=
Math
.
floor
(
seconds
%
this
.
SECONDS_IN_DAY
/
this
.
SECONDS_IN_HOUR
)
...
...
Please
register
or
login
to post a comment