{"id":17332943,"url":"https://github.com/client9/snowflake2time","last_synced_at":"2025-02-25T20:30:45.101Z","repository":{"id":3503807,"uuid":"4560840","full_name":"client9/snowflake2time","owner":"client9","description":"Converts twitter snowflake ids to UTC timestamps (unix epoch seconds or milliseconds) and back in php and python","archived":true,"fork":false,"pushed_at":"2023-08-13T17:38:30.000Z","size":11,"stargazers_count":50,"open_issues_count":2,"forks_count":20,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T17:19:46.344Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/client9.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-05T14:13:41.000Z","updated_at":"2024-05-18T04:42:24.000Z","dependencies_parsed_at":"2022-09-14T12:50:20.447Z","dependency_job_id":null,"html_url":"https://github.com/client9/snowflake2time","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/client9%2Fsnowflake2time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/client9%2Fsnowflake2time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/client9%2Fsnowflake2time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/client9%2Fsnowflake2time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/client9","download_url":"https://codeload.github.com/client9/snowflake2time/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240741549,"owners_count":19850172,"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-15T14:59:16.802Z","updated_at":"2025-02-25T20:30:44.853Z","avatar_url":"https://github.com/client9.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"snowflake2time\n==============\n\nConverts Twitter snowflake ids to UTC timestamps (unix epoch seconds\nor milliseconds) and back.\n\nHi.  I don't use this anymore, so pull requests to fix things up and/or become an owner are very welcome!  --nickg 2018\n\n## Snowflake Layout\n\n```\n  1  sign bit -- not used, always 0?\n 41 bits (milliseconds since epoch) - 1288834974657L\n  5  bits datacenter id\n  5  bits machine id\n 12 bit sequence number\n```\n\nCurrently in php and python.  Other languages welcome!\n\n## The Snowflake algorithm:\n\nhttps://github.com/twitter/snowflake/blob/master/src/main/scala/com/twitter/service/snowflake/IdWorker.scala\n\nTwitter IDs, JSON and Snowflake  2011-06-26\nhttps://dev.twitter.com/docs/twitter-ids-json-and-snowflake\n\nOther Snowflake news:\n\nhttp://groups.google.com/group/twitter-development-talk/browse_thread/thread/5152a34a8ae6ccb6/1edb5cd6002f6499?pli=1\n\nhttps://dev.twitter.com/blog/direct-messages-going-snowflake-on-sep-30-2011\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclient9%2Fsnowflake2time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclient9%2Fsnowflake2time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclient9%2Fsnowflake2time/lists"}