{"id":16487430,"url":"https://github.com/tjenkinson/human-string-to-date-time","last_synced_at":"2026-02-24T21:33:27.690Z","repository":{"id":65824166,"uuid":"600416830","full_name":"tjenkinson/human-string-to-date-time","owner":"tjenkinson","description":"A library that parses a human representation of a UK English formatted date/time into an object.","archived":false,"fork":false,"pushed_at":"2025-05-06T13:17:09.000Z","size":534,"stargazers_count":2,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-17T23:27:09.829Z","etag":null,"topics":["date","datetime","human","humanreadable","parser","time"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/tjenkinson.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-02-11T12:33:38.000Z","updated_at":"2025-05-06T13:17:13.000Z","dependencies_parsed_at":"2023-02-22T00:15:50.857Z","dependency_job_id":"fe3e3e5a-9fe2-490f-b13d-ba006a523eed","html_url":"https://github.com/tjenkinson/human-string-to-date-time","commit_stats":{"total_commits":28,"total_committers":2,"mean_commits":14.0,"dds":0.3571428571428571,"last_synced_commit":"1365349b18cac529030be11cfdcb77a2e1510c72"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/tjenkinson/human-string-to-date-time","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjenkinson%2Fhuman-string-to-date-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjenkinson%2Fhuman-string-to-date-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjenkinson%2Fhuman-string-to-date-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjenkinson%2Fhuman-string-to-date-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tjenkinson","download_url":"https://codeload.github.com/tjenkinson/human-string-to-date-time/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjenkinson%2Fhuman-string-to-date-time/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29801021,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T21:02:39.706Z","status":"ssl_error","status_checked_at":"2026-02-24T21:02:21.834Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["date","datetime","human","humanreadable","parser","time"],"created_at":"2024-10-11T13:34:15.694Z","updated_at":"2026-02-24T21:33:27.664Z","avatar_url":"https://github.com/tjenkinson.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Human String To Date/Time\n\nA library that parses a human representation of a UK English formatted date/time into an object.\n\nIt will always return the object with bits that are unkown are set to `null`.\n\n## Example Inputs\n\n- `1st December`\n- `December 1st`\n- `December 1`\n- `1 Dec`\n- `Dec 1993`\n- `Dec 1993`\n- `01/12`\n- `01-12`\n- `01.12`\n- `01.12.93`\n- `01.12.1993`\n- `01.12.1993`\n- `1pm`\n- `1:12pm`\n- `13:12`\n- `13:12:10`\n- `13:12:10.300`\n- `quarter to 12`\n- `Wednesday 16th`\n- `Thursday`\n- `Sat`\n- `12th November 1995 at quarter past 2`\n\n## Usage\n\n```ts\nimport { parse } from 'human-string-to-date-time';\n\nconsole.log(parse('12th November 1995 at quarter past 2'));\n```\n\noutputs\n\n```js\n{\n  dayOfWeek: 0,\n  day: 11,\n  month: 10,\n  year: 1995,\n  hour: 2,\n  minute: 15,\n  second: null,\n  millisecond: null,\n  wasTwelveHourFormat: true\n}\n```\n\n## Bugs\n\nIf you have a string that you believe should be parseable but is not working please [open an issue](https://github.com/tjenkinson/human-string-to-date-time/issues/new).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjenkinson%2Fhuman-string-to-date-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftjenkinson%2Fhuman-string-to-date-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjenkinson%2Fhuman-string-to-date-time/lists"}