system-time

0.0.13 • Public • Published

Set System Time

Only implemented for windows for now...

const systemTime = require('system-time')

try {
  // Set time 1 hour back
  systemTime.set(new Date(Date.now() - 1000 * 60 * 60))
} catch (err) {
  // Failed
  console.log(err)
}

Readme

Keywords

none

Package Sidebar

Install

npm i system-time

Weekly Downloads

0

Version

0.0.13

License

WTFPL

Unpacked Size

5.11 kB

Total Files

7

Last publish

Collaborators

  • porsager