{"id":17472481,"url":"https://github.com/sleeplessbyte/react-native-time-helpers","last_synced_at":"2025-10-05T08:10:33.333Z","repository":{"id":38882551,"uuid":"266209038","full_name":"SleeplessByte/react-native-time-helpers","owner":"SleeplessByte","description":"Time helpers for consistency across platforms when using react-native, for en-GB locale","archived":false,"fork":false,"pushed_at":"2023-01-27T04:41:52.000Z","size":431,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-18T19:47:40.927Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/SleeplessByte.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":"2020-05-22T21:16:11.000Z","updated_at":"2022-01-23T00:08:23.000Z","dependencies_parsed_at":"2023-02-15T05:32:20.018Z","dependency_job_id":null,"html_url":"https://github.com/SleeplessByte/react-native-time-helpers","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/SleeplessByte/react-native-time-helpers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SleeplessByte%2Freact-native-time-helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SleeplessByte%2Freact-native-time-helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SleeplessByte%2Freact-native-time-helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SleeplessByte%2Freact-native-time-helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SleeplessByte","download_url":"https://codeload.github.com/SleeplessByte/react-native-time-helpers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SleeplessByte%2Freact-native-time-helpers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278425684,"owners_count":25984745,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-18T17:18:50.746Z","updated_at":"2025-10-05T08:10:33.317Z","avatar_url":"https://github.com/SleeplessByte.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-time-helpers\n\nThis package aims to provide date helpers for Android, where `.toLocaleDateXXX` don't (always) work as expected.\nIt's in no way a replacement for a full-fledged date/time library, and it currently only has defaults for English.\nHowever, if your project is in a single language, and you don't need timezone support (display cross timezones), this will work just fine.\n\n## Installation\n\n```bash\nyarn add react-native-time-helpers\n```\n\nEven though this package is _meant_ for the `react-native` ecosystem, it has bundles for CJS, ES, UMD, and modern browsers.\n\n## Usage\n\n`toLocaleDateString` has the following helpers:\n\n- `localeLongWeekDayString(date)`: return the weekday name of the date\n- `localeWeekDayString(date)`: return the weekday name (short) of the date\n- `localeDateString(date)`: return the date as `{weekday} {day} {month} {year}`\n- `localeTimeString(date)`: return the time as `{hh}:{mm}` (24h)\n\nEach helper has optional options to override or change behaviour.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsleeplessbyte%2Freact-native-time-helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsleeplessbyte%2Freact-native-time-helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsleeplessbyte%2Freact-native-time-helpers/lists"}