{"id":23154899,"url":"https://github.com/xmapst/watchmaker","last_synced_at":"2025-04-04T16:45:08.940Z","repository":{"id":216596460,"uuid":"741747071","full_name":"xmapst/watchmaker","owner":"xmapst","description":"injector which change the time inside the process instead of the host.","archived":false,"fork":false,"pushed_at":"2025-03-17T02:27:38.000Z","size":28,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T03:29:12.892Z","etag":null,"topics":["faketime"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xmapst.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-11T02:53:15.000Z","updated_at":"2025-03-17T02:27:30.000Z","dependencies_parsed_at":"2024-01-12T08:26:04.586Z","dependency_job_id":"4b588cda-0786-4107-8a14-f5cadf334327","html_url":"https://github.com/xmapst/watchmaker","commit_stats":null,"previous_names":["xmapst/watchmaker"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmapst%2Fwatchmaker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmapst%2Fwatchmaker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmapst%2Fwatchmaker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmapst%2Fwatchmaker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xmapst","download_url":"https://codeload.github.com/xmapst/watchmaker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247215671,"owners_count":20903003,"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":["faketime"],"created_at":"2024-12-17T20:15:02.626Z","updated_at":"2025-04-04T16:45:08.935Z","avatar_url":"https://github.com/xmapst.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# watchmaker\n\ninjector which change the time inside the process instead of the host.\n\n## Install\n```shell\nwget https://github.com/xmapst/watchmaker/releases/download/v0.0.1-rc1/watchmaker_linux_amd64 -O /bin/watchmaker\nchmod +x /bin/watchmaker\n```\n\n## Usage\n```shell\n# absolute dates is \"YYYY-MM-DD hh:mm:ss\"\nwatchmaker --pid 1536 --faketime \"2003-01-01 10:00:05\"\n\n# absolute dates is timestamp (seconds or nanosecond)\nwatchmaker --pid 1536 --faketime 1705022260\n\n# time offset(no units), default is seconds \nwatchmaker --pid 1536 --faketime +120 \n# or\nwatchmaker --pid 1536 --faketime -120\n\n# time offset(s)\nwatchmaker --pid 1536 --faketime +120s\n# or\nwatchmaker --pid 1536 --faketime -120s\n\n# time offset(m)\nwatchmaker --pid 1536 --faketime +12m\n# or\nwatchmaker --pid 1536 --faketime -12m\n\n# time offset(h)\nwatchmaker --pid 1536 --faketime +12h\n# or\nwatchmaker --pid 1536 --faketime -12h\n\n# time offset(d)\nwatchmaker --pid 1536 --faketime +12d\n# or\nwatchmaker --pid 1536 --faketime -12d\n\n# time offset(y)\nwatchmaker --pid 1536 --faketime +1y\n# or\nwatchmaker --pid 1536 --faketime -1y\n```\n\n## Reference\n\nThis project uses the following open-source software:\n\n* [Chaos-mesh](https://github.com/chaos-mesh/chaos-mesh) - Reference chaos-mesh's watchmaker component to simulate process time\n* [Libfaketime](https://github.com/wolfcw/libfaketime) - Reference the libfaketime dynamic link library to simulate time\n* [timechaos-our-final-hack](https://chaos-mesh.org/blog/simulating-clock-skew-in-k8s-without-affecting-other-containers-on-node/#timechaos-our-final-hack) - Reference the blog to simulate time","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmapst%2Fwatchmaker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxmapst%2Fwatchmaker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmapst%2Fwatchmaker/lists"}