{"id":17445738,"url":"https://github.com/sgwilym/dot-beat-time","last_synced_at":"2025-08-03T22:39:11.736Z","repository":{"id":35009783,"uuid":"196175422","full_name":"sgwilym/dot-beat-time","owner":"sgwilym","description":"Convert legacy time to decimal internet time, or beats.","archived":false,"fork":false,"pushed_at":"2023-04-20T18:10:21.000Z","size":1349,"stargazers_count":13,"open_issues_count":17,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-29T08:23:00.852Z","etag":null,"topics":["beats","decimal","internet","swatch-internet-time","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/sgwilym.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}},"created_at":"2019-07-10T09:27:05.000Z","updated_at":"2025-03-26T22:17:03.000Z","dependencies_parsed_at":"2024-01-05T23:53:50.661Z","dependency_job_id":"a3c0a643-54f4-42d6-960f-57a6ab9e11f6","html_url":"https://github.com/sgwilym/dot-beat-time","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.11111111111111116","last_synced_commit":"63e172e0ecc6dc85d3873a5843fb7cc695db1e4a"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgwilym%2Fdot-beat-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgwilym%2Fdot-beat-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgwilym%2Fdot-beat-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgwilym%2Fdot-beat-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sgwilym","download_url":"https://codeload.github.com/sgwilym/dot-beat-time/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249707058,"owners_count":21313759,"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":["beats","decimal","internet","swatch-internet-time","time"],"created_at":"2024-10-17T18:07:00.042Z","updated_at":"2025-04-19T13:48:47.226Z","avatar_url":"https://github.com/sgwilym.png","language":"TypeScript","funding_links":[],"categories":["Programming Languages, Libraries"],"sub_categories":[],"readme":"# dot-beat-time\n\n`dot-beat-time` is a small (0.3kb), fast, dependency-free package for getting beat internet time.\n\n## Motivation\n\nThe millennium is upon us. The age of the internet arrived long ago. Why are we still coordinating meetings across timezones? Fortunately internet time — which splits the day into 1000 beats and which is consistent across the world — is here to fix all that.\n\nExample: you are in central Europe and wish to organise a meeting with your friend in Tokyo during your lunch. Instead of calculating what time it is in Tokyo then, just tell your friend: \"let's talk at @500!\".\n\n## Installation\n\nInstall locally:\n\n`yarn add dot-beat-time`\n\nAlternatively `dot-beat-time` is also published as an ES module, meaning that you can import it directly using CDNs like [pika.dev](https://www.pika.dev/packages/dot-beat-time).\n\n## API\n\n### `fromDate`\n\n`fromDate(date: Date, long?: boolean): string`\n\nTakes a standard JS Date and outputs as an internet time formatted string e.g. `@255`.\nIf `true` is passed to the second argument, the beat will be fractional e.g. `@255.50`.\n\n### `now`\n\n`fromDate(long?: boolean): string`\n\nOutputs the current time as a internet time formatted string e.g. `@650`.\nIf `true` is passed to the second argument, the beat will be fractional e.g. `@650.73`.\n\n## Credit\n\nThe calculation for determining the current beat time has been taken from the [beats rust crate](https://docs.rs/beats).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgwilym%2Fdot-beat-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsgwilym%2Fdot-beat-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgwilym%2Fdot-beat-time/lists"}