{"id":24926724,"url":"https://github.com/michaelwp/js-parsing-date","last_synced_at":"2025-06-14T19:04:54.859Z","repository":{"id":57283430,"uuid":"361434969","full_name":"michaelwp/js-parsing-date","owner":"michaelwp","description":null,"archived":false,"fork":false,"pushed_at":"2021-04-25T17:34:42.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T12:31:36.554Z","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/michaelwp.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}},"created_at":"2021-04-25T13:23:16.000Z","updated_at":"2021-04-25T17:34:44.000Z","dependencies_parsed_at":"2022-09-05T00:41:25.507Z","dependency_job_id":null,"html_url":"https://github.com/michaelwp/js-parsing-date","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/michaelwp/js-parsing-date","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Fjs-parsing-date","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Fjs-parsing-date/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Fjs-parsing-date/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Fjs-parsing-date/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelwp","download_url":"https://codeload.github.com/michaelwp/js-parsing-date/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Fjs-parsing-date/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259868350,"owners_count":22924231,"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":"2025-02-02T12:53:13.049Z","updated_at":"2025-06-14T19:04:54.827Z","avatar_url":"https://github.com/michaelwp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# js-parsing-date\n\nIni adalah package nodejs sederhana untuk menghitung selisih dan detail antara dua tanggal.\n\n### Contoh penggunaan\n\n```javascript\nconst jsDate = require(\"./js-date\");\n\nconst jsDateObj = new jsDate(\n    \"2021/04/01\",\"2021/04/10\"\n)\n\nconsole.log(jsDateObj.difference().toMilliSeconds() + \" milliseconds\");\nconsole.log(jsDateObj.difference().toSeconds() + \" seconds\");\nconsole.log(jsDateObj.difference().toMinutes() + \" minutes\");\nconsole.log(jsDateObj.difference().toHours() + \" hours\");\nconsole.log(jsDateObj.difference().toDays() + \" days\");\nconsole.log(jsDateObj.parsingDate());\n```\n#### Hasil\n```text\n777600000 milliseconds\n777600 seconds\n12960 minutes\n216 hours\n9 days\n[ '2021/04/01',\n  '2021/04/02',\n  '2021/04/03',\n  '2021/04/04',\n  '2021/04/05',\n  '2021/04/06',\n  '2021/04/07',\n  '2021/04/08',\n  '2021/04/09',\n  '2021/04/10' ]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelwp%2Fjs-parsing-date","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelwp%2Fjs-parsing-date","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelwp%2Fjs-parsing-date/lists"}