- Notifications
You must be signed in to change notification settings - Fork179
Date and Time#168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Date and Time#168
Changes fromall commits
Commits
Show all changes
17 commits Select commitHold shift + click to select a range
6b59129
date and time
MykolaSopihac8ec4ba
Update 1-js/05-data-types/11-date/6-get-seconds-today/solution.md
tarasyyyk23e1fad
Update 1-js/05-data-types/11-date/2-get-week-day/solution.md
tarasyyyk6d60951
Update 1-js/05-data-types/11-date/8-format-date-relative/solution.md
tarasyyykf2b83e0
Update 1-js/05-data-types/11-date/article.md
tarasyyyk390e529
Update 1-js/05-data-types/11-date/article.md
tarasyyyk70df998
Update 1-js/05-data-types/11-date/article.md
tarasyyyke17b350
Update 1-js/05-data-types/11-date/article.md
tarasyyykfe71573
Update 1-js/05-data-types/11-date/article.md
tarasyyyk7ce25ba
Update 1-js/05-data-types/11-date/article.md
tarasyyyk644fb96
Update 1-js/05-data-types/11-date/article.md
tarasyyyk797f76c
Update 1-js/05-data-types/11-date/article.md
tarasyyyk34d5cd2
Update 1-js/05-data-types/11-date/article.md
tarasyyyk69f8e68
Update 1-js/05-data-types/11-date/article.md
tarasyyyk4f02d03
Update 1-js/05-data-types/11-date/article.md
tarasyyyk28a6454
Update 1-js/05-data-types/11-date/article.md
tarasyyyk72607cc
Update 1-js/05-data-types/11-date/article.md
tarasyyykFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
8 changes: 4 additions & 4 deletions1-js/05-data-types/11-date/1-new-date/solution.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions1-js/05-data-types/11-date/1-new-date/task.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions1-js/05-data-types/11-date/2-get-week-day/solution.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
Метод`date.getDay()`повертає номер робочого дня, починаючи з неділі. | ||
Зробімо масив буднів, щоб ми могли отримати відповідну назву дня за номером: | ||
```js run demo | ||
function getWeekDay(date) { | ||
let days = ['НД', 'ПН', 'ВТ', 'СР', 'ЧТ', 'ПТ', 'СБ']; | ||
return days[date.getDay()]; | ||
} | ||
let date = new Date(2014, 0, 3); // 3січня 2014 | ||
alert( getWeekDay(date) ); //ПТ | ||
``` |
10 changes: 5 additions & 5 deletions1-js/05-data-types/11-date/2-get-week-day/task.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions1-js/05-data-types/11-date/3-weekday/task.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions1-js/05-data-types/11-date/4-get-date-ago/solution.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions1-js/05-data-types/11-date/4-get-date-ago/task.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions1-js/05-data-types/11-date/5-last-day-of-month/solution.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions1-js/05-data-types/11-date/5-last-day-of-month/task.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions1-js/05-data-types/11-date/6-get-seconds-today/solution.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions1-js/05-data-types/11-date/6-get-seconds-today/task.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions1-js/05-data-types/11-date/7-get-seconds-to-tomorrow/solution.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions1-js/05-data-types/11-date/7-get-seconds-to-tomorrow/task.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
42 changes: 21 additions & 21 deletions1-js/05-data-types/11-date/8-format-date-relative/solution.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.