Skip to content

ConnorChristie/Set-System-Clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Sets the system date and time.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published