{"id":20601580,"url":"https://github.com/rolling-scopes-school/core-js-dates","last_synced_at":"2025-04-15T00:46:41.378Z","repository":{"id":222788324,"uuid":"723395892","full_name":"rolling-scopes-school/core-js-dates","owner":"rolling-scopes-school","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-22T08:26:59.000Z","size":32,"stargazers_count":7,"open_issues_count":0,"forks_count":1065,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T00:46:29.494Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rolling-scopes-school.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-25T14:35:06.000Z","updated_at":"2025-04-04T04:38:38.000Z","dependencies_parsed_at":"2024-11-30T11:01:03.653Z","dependency_job_id":null,"html_url":"https://github.com/rolling-scopes-school/core-js-dates","commit_stats":null,"previous_names":["rolling-scopes-school/core-js-dates"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolling-scopes-school%2Fcore-js-dates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolling-scopes-school%2Fcore-js-dates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolling-scopes-school%2Fcore-js-dates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolling-scopes-school%2Fcore-js-dates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rolling-scopes-school","download_url":"https://codeload.github.com/rolling-scopes-school/core-js-dates/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986277,"owners_count":21194025,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T09:11:15.476Z","updated_at":"2025-04-15T00:46:41.359Z","avatar_url":"https://github.com/rolling-scopes-school.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Core JS dates task\n\n:warning: **Please note that you mustn't open PRs that contains the answers to this repo!**\n\nHowever, PRs with the fixes or proposals are welcomed!\n\n## Task\n\nThe task is to implement functions on different Core JS topics. This module requires solving tasks related to loops and conditions.\n\n**Active usage of [documentation](https://developer.mozilla.org/en-US/) is strongly recommended!**\n\n## Prepare and test\n\n1. Install Node.js\n2. Fork this repository: https://github.com/rolling-scopes-school/core-js-dates\n3. Clone your newly created repo: `https://github.com/\u003c%your_github_username%\u003e/core-js-dates/`\n4. Go to folder `core-js-dates`\n5. To install all dependencies use `npm install`\n6. Each task is usually a regular function:\n\n   ```javascript\n   /**\n    * Determines whether a given number is positive. Zero is considered positive.\n    *\n    * @param {string} date - date and time.\n    * @return {number} milliseconds in timestamp.\n    *\n    * @example:\n    * '01 Jan 1970 00:00:00 GMT' =\u003e 0\n    * '04 Dec 1995 00:12:00 GMT' =\u003e 818035920000\n    */\n   function dateToTimestamp(/* date */) {\n     throw new Error('Not implemented');\n   }\n   ```\n\n   Read the task description in the comment above the function. Try to understand the idea. You can see the tests prepared if you don't understand it.\n\n7. Write your code in `src/core-js-dates-tasks.js`.\n\n   Uncomment the incoming parameters:\n\n   ```javascript\n   function dateToTimestamp(/* date */)\n   ```\n\n   Remove the throwing error line from function body:\n\n   ```javascript\n   throw new Error('Not implemented');\n   ```\n\n   Implement the function by any way and verify your solution by running tests until the failed test become passed (green).\n\n8. Save the solution and run `npm test` in command line. If everything is OK you can try to resolve the next task.\n\n## Submit to [rs app](https://app.rs.school/)\n\n1. Commit and push your solutions to your fork\n2. Open [rs app](https://app.rs.school/) and login\n3. Go to [submit task page](https://app.rs.school/course/submit-task?course=rs-2023-q4)\n4. Select your task (Core JS Dates)\n5. Press submit button and enjoy\n\n## Notes\n\n- We recommend you to use nodejs of version 22 or lower. If you using any of features that does not supported by node `v22`, score won't be submitted.\n- Installing nodejs `v22` is optional, you can run jobs using your version and not use methods that are not in nodejs `v22`.\n- Please be sure that each of your test in limit of 30sec.\n- You will get 0 (zero) if you have any eslint's errors or warnings.\n\n## FAQ\n\n**Question:** I use Windows machine and have received a lot of errors like \"Expected linebreaks to be 'LF' but found 'CRLF'\". How to handle it?\u003cbr\u003e\n**Answer**:\n\n- First, you need to install Gitbash properly: you need to choose option \"Checkout as-is, commit as-is\" in section \"Configuring the line ending conversions\". It'll let you download repos with line endings set \"as-is\" as well as commit. In other words, not to change them at all, because by default it converts them.\n- Second, install `editorconfig` plugin to your editor. For VS Code you can find it here:\n  https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig\n\n  I'll let you apply some rules when you saving your files in the repo. This plugin will use config-file `.editorconfig` that you can see in the root folder. It lets you save the file with needed line endings, trim whitespaces, etc.\n\n- Finally, you need to apply linter's autofix feature in order to fix all linebreaks that was already changed to \"CLRF\":\n\n```\n$ npm run lint:fix\n```\n\n**Question:** Execution of tests \"hangs\" on one of them and does not display the result. What to do?\u003cbr\u003e\n**Answer**: Check your solution for an infinite loop, fix it, and rerun the test.\n\n**Question:** The solution in the local repository succeeds and all tests are \"green\", but in the application some tests don't count. What to do?\u003cbr\u003e\n**Answer**: The server is in a different time zone and your solution is not universal. Change the time zone on your local computer and run the tests again. For example, to UTC+5 and UTC-5. You will probably see that some of the tests did not complete successfully.\n\n**Question:** The solution in the local repository succeeds and all tests are \"green\", but in the application some tests don't count. What to do?\u003cbr\u003e\n**Answer**: [Update your repository fork](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork), update the local repository from the fork, run tests and fix your solution. After fixing, resubmit your solution for testing.\n\n---\n\nThe task based on https://github.com/mikhama/core-js-101/blob/master/src/04-date-tasks.js.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frolling-scopes-school%2Fcore-js-dates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frolling-scopes-school%2Fcore-js-dates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frolling-scopes-school%2Fcore-js-dates/lists"}