{"id":24965764,"url":"https://github.com/allnulled/lsw-timer","last_synced_at":"2025-03-29T01:19:23.121Z","repository":{"id":274460243,"uuid":"922967243","full_name":"allnulled/lsw-timer","owner":"allnulled","description":"Time parser and related tool for LSW","archived":false,"fork":false,"pushed_at":"2025-03-24T17:50:12.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T18:46:12.541Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/allnulled.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2025-01-27T12:16:43.000Z","updated_at":"2025-03-24T17:50:16.000Z","dependencies_parsed_at":"2025-01-27T13:48:45.300Z","dependency_job_id":"58627412-e788-4931-9fcb-9d527f4bc810","html_url":"https://github.com/allnulled/lsw-timer","commit_stats":null,"previous_names":["allnulled/lsw-timer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Flsw-timer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Flsw-timer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Flsw-timer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Flsw-timer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allnulled","download_url":"https://codeload.github.com/allnulled/lsw-timer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246122466,"owners_count":20726834,"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-03T11:16:08.549Z","updated_at":"2025-03-29T01:19:23.114Z","avatar_url":"https://github.com/allnulled.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lsw-timer\n\nParser simple para fecha, hora, rango, duración y lista.\n\nBranch of [@allnulled/timeformat](https://github.com/allnulled/timeformat).\n\n## Instalación\n\n```sh\nnpm i -s @allnulled/lsw-timer\n```\n\nY en node.js ya puedes:\n\n```js\nrequire(\"@allnulled/lsw-timer\");\n```\n\nY en html tienes que:\n\n```html\n\u003cscript src=\"node_modules/@allnulled/lsw-timer/timeformat.js\"\u003e\u003c/script\u003e\n```\n\n## Uso\n\nTanto en node.js como en html puedes:\n\n```js\nconst time = Timeformat_parser.parse(\"1h 5min 30s\");\n```\n\n## Formatos válidos\n\nPermite:\n\n  - duración: `0y 0mon 0d 0h 0min 0s 0ms`\n  - fecha: `2025/01/01`\n  - hora: `00:00:00.000`, `00:00:00`, `00:00`\n  - fecha y hora: `2025/01/01+00:00:00.000`\n  - rango de fecha y hora: `2025/01/01-2028/01/01`\n  - lista de los anteriores, usando `,` para separar\n\nUn ejemplo de cada:\n\n```js\nconst out1 = Timeformat_parser.parse(\"1h 20min\");\nconst out2 = Timeformat_parser.parse(\"1y 2mon 5d 3h 2min 10s 15ms\");\nconst out3 = Timeformat_parser.parse(\"1h, 2h, 3h\");\nconst out4 = Timeformat_parser.parse(\"2025/01/01+00:00:00.000\");\nconst out5 = Timeformat_parser.parse(\"2025/01/01+00:00:00.000-2025/01/01+00:00:01.000\");\nconst out6 = Timeformat_parser.parse(\"2025/01/01-2028/01/01\");\nconst out7 = Timeformat_parser.parse(\"2025/01/01-2028/01/01, 2030/01/01-2033/01/01\");\n```\n\n\n\n## Casos de uso\n\nParseo simple de los tipos anteriores, no mucho más. En teoría estaba `moment.js` para cosas más más.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallnulled%2Flsw-timer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallnulled%2Flsw-timer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallnulled%2Flsw-timer/lists"}