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)
}
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)
}
npm i system-time
2
0.0.13
WTFPL
5.11 kB
7