Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
GeekLearnMathWeapp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
frontend
GeekLearnMathWeapp
Commits
aab7de91
Commit
aab7de91
authored
Jun 20, 2023
by
raca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update
parent
91b4c533
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
day.ts
src/utils/day.ts
+5
-2
No files found.
src/utils/day.ts
View file @
aab7de91
...
...
@@ -15,8 +15,11 @@ function formatTime (date: Date): string {
.
padStart
(
2
,
'0'
)}
:
${
seconds
.
toString
().
padStart
(
2
,
'0'
)}
`
}
export
function
convertDateTime
(
input
:
string
):
string
{
const
date
=
new
Date
(
input
)
export
function
convertDateTime
(
value
:
string
):
string
{
if
(
!
value
)
{
return
'-'
}
const
date
=
new
Date
(
value
)
const
monthDay
=
formatMonthDay
(
date
)
const
time
=
formatTime
(
date
)
return
`
${
monthDay
}
${
time
}
`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment