1.0.4 • Published 7 years ago

set-system-clock v1.0.4

Weekly downloads
28
License
ISC
Repository
github
Last release
7 years ago

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'));
1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago