{"id":19783834,"url":"https://github.com/dalirnet/sysclock","last_synced_at":"2025-02-28T06:54:13.420Z","repository":{"id":57376242,"uuid":"377803319","full_name":"dalirnet/sysclock","owner":"dalirnet","description":"Sets the system clock","archived":false,"fork":false,"pushed_at":"2021-06-17T15:38:27.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-11T03:18:05.821Z","etag":null,"topics":["javascript","nodejs"],"latest_commit_sha":null,"homepage":"","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/dalirnet.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":"2021-06-17T11:14:13.000Z","updated_at":"2021-08-18T20:33:16.000Z","dependencies_parsed_at":"2022-09-05T19:11:55.838Z","dependency_job_id":null,"html_url":"https://github.com/dalirnet/sysclock","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/dalirnet%2Fsysclock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalirnet%2Fsysclock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalirnet%2Fsysclock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalirnet%2Fsysclock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dalirnet","download_url":"https://codeload.github.com/dalirnet/sysclock/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241114203,"owners_count":19912025,"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":["javascript","nodejs"],"created_at":"2024-11-12T06:09:24.232Z","updated_at":"2025-02-28T06:54:13.404Z","avatar_url":"https://github.com/dalirnet.png","language":"JavaScript","readme":"# sysclock\n\nSets the system clock (ready for linux \u0026 win)\n\n```javascript\nimport sysClock from \"sysClock\"\n\n// Create instance for current os platform\nconst sysClockInstance = sysClock()\n\n// Inactive network time protocl (NTP)\nsysClockInstance\n    .ntp(false)\n    .then(() =\u003e {\n        // Inactive NTP\n    })\n    .catch((error) =\u003e {\n        // Error\n    })\n\n// Change date to Tue May 12 1992 09:30:00\nsysClockInstance\n    .date(\"1992-05-12 09:30:00\")\n    .then(() =\u003e {\n        // Changed date\n    })\n    .catch((error) =\u003e {\n        // Error\n    })\n\n// Active network time protocl (NTP)\nsysClockInstance\n    .ntp(true)\n    .then(() =\u003e {\n        // Active NTP\n    })\n    .catch((error) =\u003e {\n        // Error\n    })\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalirnet%2Fsysclock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdalirnet%2Fsysclock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalirnet%2Fsysclock/lists"}