{"id":16921395,"url":"https://github.com/beyondkmp/check-24-hours-time","last_synced_at":"2025-04-13T00:09:31.938Z","repository":{"id":65166736,"uuid":"585113432","full_name":"beyondkmp/check-24-hours-time","owner":"beyondkmp","description":"A thin wrapper native interface to check the system setting is the 24 hours time format","archived":false,"fork":false,"pushed_at":"2023-08-29T12:44:26.000Z","size":1411,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T00:09:22.698Z","etag":null,"topics":[],"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/beyondkmp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2023-01-04T10:56:54.000Z","updated_at":"2024-10-28T08:03:02.000Z","dependencies_parsed_at":"2024-12-03T13:15:17.225Z","dependency_job_id":null,"html_url":"https://github.com/beyondkmp/check-24-hours-time","commit_stats":{"total_commits":62,"total_committers":2,"mean_commits":31.0,"dds":"0.33870967741935487","last_synced_commit":"52f537713f02dfcea6025b1cc068296bba285fd0"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondkmp%2Fcheck-24-hours-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondkmp%2Fcheck-24-hours-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondkmp%2Fcheck-24-hours-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondkmp%2Fcheck-24-hours-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beyondkmp","download_url":"https://codeload.github.com/beyondkmp/check-24-hours-time/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647299,"owners_count":21139086,"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-13T19:51:38.014Z","updated_at":"2025-04-13T00:09:31.888Z","avatar_url":"https://github.com/beyondkmp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Check 24 hours time\n\nA thin wrapper native interface to check the system setting is the 24 hours time\nformat\n\n## Goals\n\n- zero dependencies\n- leverage TypeScript declarations wherever possible\n\n## Install\n\n```shellsession\n$ yarn add check-24-hours-time\n# or\n$ npm install --save check-24-hours-time\n```\n\n## API\n\n```typescript\nimport { is24hoursTimeFormat, getUserDefaultLocaleName } from 'check-24-hours-time'\n\n// is24hoursTimeFormat returns true if system time is 24 hours. returns false if 12 hours\nconst result = is24hoursTimeFormat()\nconsole.log(result)\n\n// getUserDefaultLocaleName returns the user default locale name, return default(en-US) if there's an error\nconst result = getUserDefaultLocaleName()\nconsole.log(result)\n```\n\n## Documentation\n\nSee the documentation under the\n[`docs`](https://github.com/beyondkmp/check-24-hours-time/tree/master/docs)\nfolder.\n\n## Supported versions\n\nEach release includes prebuilt binaries based on\n[N-API](https://nodejs.org/api/n-api.html), with support for different versions\nof Node and Electron. Please refer to the\n[N-API version matrix](https://nodejs.org/api/n-api.html#node-api-version-matrix)\nand the release documentation for [Node](https://github.com/nodejs/Release) and\n[Electron](https://electronjs.org/docs/tutorial/support) to see what is\nsupported currently.\n\n## Contributing\n\nRead the\n[Setup](https://github.com/beyondkmp/check-24-hours-time/blob/master/docs/index.md#setup)\nsection to ensure your development environment is setup for what you need.\n\nIf you want to see something supported, open an issue to start a discussion\nabout it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeyondkmp%2Fcheck-24-hours-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeyondkmp%2Fcheck-24-hours-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeyondkmp%2Fcheck-24-hours-time/lists"}