{"id":18369880,"url":"https://github.com/cawfree/timusoid","last_synced_at":"2025-10-05T23:05:28.498Z","repository":{"id":36938306,"uuid":"231679074","full_name":"cawfree/timusoid","owner":"cawfree","description":"Cyclic representations of time.","archived":false,"fork":false,"pushed_at":"2023-01-05T04:52:19.000Z","size":1154,"stargazers_count":4,"open_issues_count":14,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T04:31:53.725Z","etag":null,"topics":["cyclic","moment","network","neural","node","percent","time"],"latest_commit_sha":null,"homepage":null,"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/cawfree.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-01-03T22:59:13.000Z","updated_at":"2024-04-17T21:42:25.000Z","dependencies_parsed_at":"2023-01-17T07:30:41.769Z","dependency_job_id":null,"html_url":"https://github.com/cawfree/timusoid","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cawfree%2Ftimusoid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cawfree%2Ftimusoid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cawfree%2Ftimusoid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cawfree%2Ftimusoid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cawfree","download_url":"https://codeload.github.com/cawfree/timusoid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247531359,"owners_count":20953937,"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":["cyclic","moment","network","neural","node","percent","time"],"created_at":"2024-11-05T23:32:54.331Z","updated_at":"2025-10-05T23:05:23.444Z","avatar_url":"https://github.com/cawfree.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/cawfree"],"categories":[],"sub_categories":[],"readme":"# timusoid\nCircular representations of time. These are useful for graphically representing the periodicity of time or representing time-dependent input behaviour in deep neural networks. This was inspired by [@ItsIanLondon](https://twitter.com/ItsIanLondon)'s article [\"Encoding Cyclical Features in 24 Hour Time\"](https://ianlondon.github.io/blog/encoding-cyclical-features-24hour-time/).\n\n\u003ca href=\"#badge\"\u003e\n  \u003cimg alt=\"code style: prettier\" src=\"https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square\"\u003e\n\u003c/a\u003e\n\n## 🚀 Getting Started\n\nUsing [`npm`]():\n\n```bash\nnpm install --save timusoid\n```\n\nUsing [`yarn`]():\n\n```bash\nyarn add timusoid\n```\n\n## ✍️ Usage\n\n```javascript\nimport moment from 'moment';\nimport { timusoid } from 'timusoid';\n\nconst { sin, cos, tan, progress } = timusoid(\n  moment('2020-01-04T14:19:03.201Z'),\n  'yearly', // oneOf(['hourly', 'daily', 'weekly', 'monthly', 'yearly'])\n);\n\nsin(); // 0.061703628813687975\ncos(); // 0.9980945156603269\ntan(); // 0.061821428577699\nprogress(); // 0.009826679853832305 (%)\n```\n\n## ✌️ License\n[MIT](https://opensource.org/licenses/MIT)\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.buymeacoffee.com/cawfree\"\u003e\n    \u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-orange.png\" alt=\"Buy @cawfree a coffee!\" width=\"232\" height=\"50\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcawfree%2Ftimusoid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcawfree%2Ftimusoid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcawfree%2Ftimusoid/lists"}