Emits date and time related events
Instance of EventEmitter that emits date/time events as time advances.
npm install date-events
var DateEvents = require'date-events'dtEvents =dtEventson'second'console.log'+1 second = %s' ddtEventson'minute'dtEventsremoveAllListeners // Without removing listeners, program will not exitconsole.log'Script running, will print time each second and exit once the minute changes.'
Returns a new instance of date-events emitter. Equivalent to
Should probably add more...