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
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

system-clock

set system time, date and zone in os Windows

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
0
Created
Source

System Clock

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.

Usage

  const systemClock = require('system-clock');
  // setDateAndTime(day, month, year, hour, minute, sec)
  const isSucc = systemClock.setDateAndTime(12, 5, 2020, 17, 0, 0);

FAQs

Package last updated on 27 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts