{"id":25898240,"url":"https://github.com/clebsf/totime","last_synced_at":"2025-10-26T05:46:57.376Z","repository":{"id":57102453,"uuid":"231592807","full_name":"clebsf/ToTime","owner":"clebsf","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-11T17:21:29.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T02:36:03.233Z","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/clebsf.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":"2020-01-03T13:17:27.000Z","updated_at":"2020-08-14T23:26:18.000Z","dependencies_parsed_at":"2022-08-20T22:10:23.636Z","dependency_job_id":null,"html_url":"https://github.com/clebsf/ToTime","commit_stats":null,"previous_names":["byclebert/totime","clebertsfigueiredo/totime","clebsf/totime","clebertsilva28/totime"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/clebsf/ToTime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clebsf%2FToTime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clebsf%2FToTime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clebsf%2FToTime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clebsf%2FToTime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clebsf","download_url":"https://codeload.github.com/clebsf/ToTime/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clebsf%2FToTime/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281064195,"owners_count":26437785,"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","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-03-03T00:17:42.929Z","updated_at":"2025-10-26T05:46:57.360Z","avatar_url":"https://github.com/clebsf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ToTime\nThis is a time conversion package.\n\n![](https://img.shields.io/github/license/clebertsfigueiredo/totime)\n![](https://img.shields.io/npm/v/@clebertsfigueiredo/totime)\n![](https://img.shields.io/github/repo-size/clebertsfigueiredo/totime)\n![](https://img.shields.io/npm/dt/@clebertsfigueiredo/totime)\n\n\n### INSTALL\n```\nnpm i @clebertsfigueiredo/totime\n```\n\n### IMPORT\n```js\nconst totime = require('@clebertsfigueiredo/totime')\n// or\nimport totime from '@clebertsfigueiredo/totime'\n```\n\n### USE\n```js\nconst { minutesToHours } = require('@clebertsfigueiredo/totime')\n\nconst response = minutesToHours(85)\n\nconsole.log(response) // '01:25'\n\n```\n\n### METHODS\n```js\nconst {\n    intervalInMinutes,\n    minutesToHours,\n    secondsToHours,\n    secondsToMinutes,\n    timeToMinutes,\n    timeToSeconds \n} = require('@clebertsfigueiredo/totime')\n\n// Gets the interval in minutes\nintervalInMinutes('14:10', '14:30') // Output: 20\n\n// Transform minutes into hours\nminutesToHours(125) // Output: '02:05'\n\n// Transform seconds into hours\nsecondsToHours(10860) // Output: '03:01'\nsecondsToHours(14465) // Output: '04:01:05'\n\n// Transform seconds into minutes\nsecondsToMinutes(60) // Output: '01' **minutes\nsecondsToMinutes(75) // Output: 01:15 **PS.: \u003cminutes\u003e:\u003cseconds\u003e, does not return the time\n\n// Transform time to minutes\ntimeToMinutes('02:00') // Output: 120\n\n// Transform time to seconds\ntimeToSeconds('02:00') // Output: 7200\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclebsf%2Ftotime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclebsf%2Ftotime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclebsf%2Ftotime/lists"}