mirror of
https://github.com/bobwen-dev/htpdate
synced 2025-04-11 23:00:44 +02:00

win32: there's a way to get the perfect command for everybody in every location; linux: wait for a whole second tick before date command;
6 lines
112 B
CoffeeScript
6 lines
112 B
CoffeeScript
util = require 'util'
|
|
|
|
module.exports = util.promisify (ms, cb) ->
|
|
return cb() if ms <= 0
|
|
setTimeout cb, ms
|