{"id":17419564,"url":"https://github.com/bendrucker/postgres-date","last_synced_at":"2025-04-13T05:13:18.086Z","repository":{"id":33737621,"uuid":"37392242","full_name":"bendrucker/postgres-date","owner":"bendrucker","description":"Postgres date column parser","archived":false,"fork":false,"pushed_at":"2023-03-28T13:57:04.000Z","size":41,"stargazers_count":14,"open_issues_count":2,"forks_count":16,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T08:14:05.091Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/bendrucker.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}},"created_at":"2015-06-13T23:50:41.000Z","updated_at":"2024-02-18T11:36:19.000Z","dependencies_parsed_at":"2024-06-18T14:07:02.839Z","dependency_job_id":null,"html_url":"https://github.com/bendrucker/postgres-date","commit_stats":{"total_commits":54,"total_committers":10,"mean_commits":5.4,"dds":"0.42592592592592593","last_synced_commit":"b7fb4cc3c4600330e5c398617ff7b99f3984b95d"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fpostgres-date","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fpostgres-date/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fpostgres-date/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fpostgres-date/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bendrucker","download_url":"https://codeload.github.com/bendrucker/postgres-date/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248405877,"owners_count":21098089,"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-10-17T02:26:29.979Z","updated_at":"2025-04-13T05:13:18.045Z","avatar_url":"https://github.com/bendrucker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postgres-date [![tests](https://github.com/bendrucker/postgres-date/workflows/tests/badge.svg)](https://github.com/bendrucker/postgres-date/actions?query=workflow%3Atests)\n\n\u003e Postgres date output parser\n\nThis package parses [date/time outputs](https://www.postgresql.org/docs/current/datatype-datetime.html#DATATYPE-DATETIME-OUTPUT) from Postgres into Javascript `Date` objects. Its goal is to match Postgres behavior and preserve data accuracy.\n\nIf you find a case where a valid Postgres output results in incorrect parsing (including loss of precision), please [create a pull request](https://github.com/bendrucker/postgres-date/compare) and provide a failing test.\n\n**Supported Postgres Versions:** `\u003e= 9.6`\n\nAll prior versions of Postgres are likely compatible but not officially supported.\n\n## Install\n\n```\nnpm install --save postgres-date\n```\n\n## Usage\n\n```js\nconst parse = require('postgres-date')\nparse('2011-01-23 22:15:51Z')\n// =\u003e 2011-01-23T22:15:51.000Z\n```\n\n## API\n\n#### `parse(isoDate)` -\u003e `date`\n\n##### isoDate\n\n*Required*  \nType: `string`\n\nA date string from Postgres.\n\n## Releases\n\nThe following semantic versioning increments will be used for changes:\n\n* **Major**: Removal of support for Node.js versions or Postgres versions (not expected)\n* **Minor**: Unused, since Postgres returns dates in standard ISO 8601 format\n* **Patch**: Any fix for parsing behavior\n\n## License\n\nMIT © [Ben Drucker](http://bendrucker.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Fpostgres-date","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbendrucker%2Fpostgres-date","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Fpostgres-date/lists"}