set-system-clock-wfix
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

Set-System-Clock

Sets the system date and time through the use of platform dependent commands.

Only supports Windows and Linux as of now.

Installation

npm i set-system-clock -S

API

DateTimeControl.setDateTime

// @dateTime - The date and time to set the system clock to
DateTimeControl.setDateTime(dateTime: Date);

Code Example

var DateTimeControl = require('set-system-clock');

// Sets the date and time to the date specified
DateTimeControl.setDateTime(new Date('8/1/2017 13:14:12'));

Readme

Keywords

Package Sidebar

Install

npm i set-system-clock-wfix

Weekly Downloads

5

Version

1.0.5

License

ISC

Unpacked Size

4.8 kB

Total Files

11

Last publish

Collaborators

  • alenhu