{"id":17472762,"url":"https://github.com/shinnn/tzdata-coordinate-regex","last_synced_at":"2025-08-24T16:38:41.203Z","repository":{"id":57384215,"uuid":"60343353","full_name":"shinnn/tzdata-coordinate-regex","owner":"shinnn","description":"A regular expression for time zone coordinates in zone.tab format","archived":false,"fork":false,"pushed_at":"2019-07-07T19:51:50.000Z","size":68,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-23T05:09:24.146Z","etag":null,"topics":["iso6709","javascript","regular-expression","tz","tzdata","validation"],"latest_commit_sha":null,"homepage":"https://npm.runkit.com/tzdata-coordinate-regex","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shinnn.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":"2016-06-03T11:38:05.000Z","updated_at":"2019-07-07T19:51:52.000Z","dependencies_parsed_at":"2022-08-31T00:31:07.908Z","dependency_job_id":null,"html_url":"https://github.com/shinnn/tzdata-coordinate-regex","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Ftzdata-coordinate-regex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Ftzdata-coordinate-regex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Ftzdata-coordinate-regex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Ftzdata-coordinate-regex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shinnn","download_url":"https://codeload.github.com/shinnn/tzdata-coordinate-regex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245991583,"owners_count":20706129,"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":["iso6709","javascript","regular-expression","tz","tzdata","validation"],"created_at":"2024-10-18T17:35:47.504Z","updated_at":"2025-03-28T08:11:21.133Z","avatar_url":"https://github.com/shinnn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tzdata-coordinate-regex\n\n[![npm version](https://img.shields.io/npm/v/tzdata-coordinate-regex.svg)](https://www.npmjs.com/package/tzdata-coordinate-regex)\n[![Github Actions](https://action-badges.now.sh/shinnn/tzdata-coordinate-regex)](https://wdp9fww0r9.execute-api.us-west-2.amazonaws.com/production/results/shinnn/tzdata-coordinate-regex)\n\nA regular expression for time zone coordinates in [zone.tab](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) format\n\n```javascript\ntzdataCoordinateRegex.test('+313200+0350542'); //=\u003e true\ntzdataCoordinateRegex.test('+3843-00908'); //=\u003e true\n```\n\n## Installation\n\n[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/).\n\n```\nnpm install tzdata-coordinate-regex\n```\n\n## API\n\n```javascript\nimport tzdataCoordinateRegex from 'tzdata-coordinate-regex';\n```\n\n### tzdataCoordinateRegex\n\nType: `RegExp`\n\nIt matches time zone coordinates in [tz database](https://www.iana.org/time-zones) format:\n\n\u003e Latitude and longitude of the zone's principal location in [ISO 6709](https://www.iso.org/iso/catalogue_detail.htm?csnumber=39242) sign-degrees-minutes-seconds format, either `+-DDMM+-DDDMM` or `+-DDMMSS+-DDDMMSS`, first latitude (`+` is north), then longitude (`+` is east).\n\n```javascript\ntzdataCoordinateRegex.exec('+4254-07436');\n/*=\u003e [\n  '+4254-07436',\n  '+',\n  '42',\n  '54',\n  undefined,\n  '-',\n  '074',\n  '36',\n  undefined,\n  index: 0,\n  input: '+4254-07436',\n  groups: {\n    latitudeSeconds: undefined,\n    longitudeSeconds: undefined\n  }\n] */\n\ntzdataCoordinateRegex.exec('-353916+1394441');\n/*=\u003e [\n  '-353916+1394441',\n  '-',\n  '35',\n  '39',\n  '16',\n  '+',\n  '139',\n  '44',\n  '41',\n  index: 0,\n  input: '-353916+1394441',\n  groups: {\n    latitudeSeconds: '16',\n    longitudeSeconds: '41'\n  }\n] */\n```\n\n## License\n\n[ISC License](./LICENSE) © 2018 - 2019 Watanabe Shinnosuke\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinnn%2Ftzdata-coordinate-regex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshinnn%2Ftzdata-coordinate-regex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinnn%2Ftzdata-coordinate-regex/lists"}