Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

system-clock

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

system-clock - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+1
-1
package.json
{
"name": "system-clock",
"version": "1.0.0",
"version": "1.0.1",
"description": "set system time, date and zone in os Windows",

@@ -5,0 +5,0 @@ "repository": "https://github.com/sid-max1996/system-clock.git",

# System Clock
Set system time, date and zone in os Windows.
Set system clock time and date in os Windows. System time sets in utc.
By default, you can change the time only as administrator, so configuration via gpedit.msc is required.

@@ -8,7 +8,5 @@

```javascript
const displayRotate = require('display-rotate');
const systemClock = require('system-clock');
// setDateAndTime(day, month, year, hour, minute, sec)
const isSucc = systemClock.setDateAndTime(12, 5, 2020, 17, 0, 0); // set system date and time in utc
// setDateAndTime(bias)
isSucc = systemClock.setTimeZone(-120); // set timezone bias - utc offset in minutes
const isSucc = systemClock.setDateAndTime(12, 5, 2020, 17, 0, 0);
```

@@ -63,7 +63,7 @@ #include <windows.h>

exports.Set(
"setTimeZone", Napi::Function::New(env, system_clock::setTimeZone)
);
// exports.Set(
// "setTimeZone", Napi::Function::New(env, system_clock::setTimeZone)
// );
return exports;
}