{"id":18532689,"url":"https://github.com/itwillwork/work-time-diff","last_synced_at":"2025-05-14T23:08:19.349Z","repository":{"id":170045319,"uuid":"646146261","full_name":"itwillwork/work-time-diff","owner":"itwillwork","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-27T13:38:56.000Z","size":77,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T11:28:42.485Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itwillwork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-05-27T12:40:24.000Z","updated_at":"2023-05-27T13:13:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"3c5ac4aa-6782-4769-baa5-d562f367d911","html_url":"https://github.com/itwillwork/work-time-diff","commit_stats":null,"previous_names":["itwillwork/work-time-diff"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itwillwork%2Fwork-time-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itwillwork%2Fwork-time-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itwillwork%2Fwork-time-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itwillwork%2Fwork-time-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itwillwork","download_url":"https://codeload.github.com/itwillwork/work-time-diff/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254243363,"owners_count":22038046,"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-06T19:07:31.387Z","updated_at":"2025-05-14T23:08:14.342Z","avatar_url":"https://github.com/itwillwork.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### work-time-diff\n\n#### Installation\n\n```\nnpm i work-time-diff\n```\n\n#### Usage \n```ts\nconst { getWorkTimeDiff } = require('work-time-diff');\n\nconst workingTime = {\n    workingHours: {\n        from: 10,\n        to: 20,\n    },\n    workingDays: ['1', '2', '3', '4', '5'], // mon, tue, wed, thu, fri\n    daysOff: ['2023-05-29'],\n};\n\nconst diff = getWorkTimeDiff(workingTime, '2023-05-26T14:00:00+03:00', '2023-05-30T14:00:00+03:00', 'hours');\n\nconsole.log(diff); // 10\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitwillwork%2Fwork-time-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitwillwork%2Fwork-time-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitwillwork%2Fwork-time-diff/lists"}