I am trying to send data to graphite carbon-cache process on port 2003 using
Ubuntu terminal:
echo "test.average 4 `date +%s`" | nc -q0 127.0.0.1
In typescript, simply run Math.floor(new Date().getTime() / 1000)
Math.floor(new Date().getTime() / 1000)
> Math.floor(new Date().getTime() / 1000) 1581040613
I'm currently running Node 13.7.0