{"id":15893719,"url":"https://github.com/chinanf-boy/reverse-what-time","last_synced_at":"2025-08-17T21:34:16.338Z","repository":{"id":57355296,"uuid":"136099333","full_name":"chinanf-boy/reverse-what-time","owner":"chinanf-boy","description":"reverse human readable time to number","archived":false,"fork":false,"pushed_at":"2018-06-05T09:35:26.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T22:02:27.267Z","etag":null,"topics":["human","number","readable"],"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/chinanf-boy.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":"2018-06-05T00:51:46.000Z","updated_at":"2018-06-05T09:35:18.000Z","dependencies_parsed_at":"2022-09-26T16:31:47.745Z","dependency_job_id":null,"html_url":"https://github.com/chinanf-boy/reverse-what-time","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinanf-boy%2Freverse-what-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinanf-boy%2Freverse-what-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinanf-boy%2Freverse-what-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinanf-boy%2Freverse-what-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chinanf-boy","download_url":"https://codeload.github.com/chinanf-boy/reverse-what-time/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246866100,"owners_count":20846496,"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":["human","number","readable"],"created_at":"2024-10-06T08:12:57.876Z","updated_at":"2025-04-02T18:15:56.802Z","avatar_url":"https://github.com/chinanf-boy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reverse-what-time [![Build Status](https://travis-ci.org/chinanf-boy/reverse-what-time.svg?branch=master)](https://travis-ci.org/chinanf-boy/reverse-what-time) [![codecov](https://codecov.io/gh/chinanf-boy/reverse-what-time/badge.svg?branch=master)](https://codecov.io/gh/chinanf-boy/reverse-what-time?branch=master)\n\n\u003e reverse human readable time to number\n\n## Install\n\n\n\n```\nnpm install reverse-what-time\n```\n\n```\nyarn add reverse-what-time\n```\n\n\n\n\n## Usage\n\n```js\nconst reverseWhatTime = require('reverse-what-time');\n\nreverseWhatTime('1Y2M1W1d3h6m44s');\n// : 1 year 2 mouths 1 week 1 day 3 hours 6 minutes 44 seconds\n// 37422404\nreverseWhatTime('1Y,2M,1W,1d,3h,6m,44s',',');\n\n```\n\n\n## API\n\n### reverseWhatTime(time, split)\n\n#### time\n\nname: | time\n---------|----------\nType: | `string`\nDesc: | time : human readable\n\n##### split\n\n name: | split\n---------|----------\nType: | `string`\nDefault: | ``\nDesc: | split time\n\n## contact\n\n- [what-time](https://github.com/chinanf-boy/what-time) human readable time\n\n## use by\n\n- [keep-mac-light](https://github.com/chinanf-boy/keep-mac-light) keep macos light no down\n\n\n## License\n\nMIT © [chinanf-boy](http://llever.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchinanf-boy%2Freverse-what-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchinanf-boy%2Freverse-what-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchinanf-boy%2Freverse-what-time/lists"}