Toggle navigation
Toggle navigation
This project
Loading...
Sign in
teamPARK
/
holiday-counter-recommend-activity
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박종현
2022-05-12 00:54:27 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
50abebc7ccc08170bd5ccda361300d468da3a1de
50abebc7
1 parent
e794b3b9
Update holiday counter
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
feature-holiday-counter/.vscode/launch.json
feature-holiday-counter/app.js
feature-holiday-counter/.vscode/launch.json
0 → 100644
View file @
50abebc
{
//
IntelliSense를
사용하여
가능한
특성에
대해
알아보세요.
//
기존
특성에
대한
설명을
보려면
가리킵니다.
//
자세한
내용을
보려면
https
:
//go.microsoft.com/fwlink/?linkid=
830387
을(를)
방문하세요.
"version"
:
"0.2.0"
,
"configurations"
:
[
{
"type"
:
"pwa-node"
,
"request"
:
"launch"
,
"name"
:
"Launch Program"
,
"skipFiles"
:
[
"<node_internals>/**"
],
"program"
:
"${workspaceFolder}
\\
app.js"
}
]
}
\ No newline at end of file
feature-holiday-counter/app.js
0 → 100644
View file @
50abebc
const
today
=
new
Date
(
"2022-05-12"
);
//오늘 날짜 입력
const
holiday
=
new
Date
(
"2022-10-01"
);
//공휴일 날짜 입력
const
diffDate
=
today
.
getTime
()
-
holiday
.
getTime
();
const
dday
=
Math
.
abs
(
diffDate
/
(
1000
*
3600
*
24
));
console
.
log
(
dday
);
\ No newline at end of file
Please
register
or
login
to post a comment