npm install time-to-uint8array
A simple node module for converting time to Uint8Array
import timeToUint8Array from 'time-to-uint8array';
const timeArray = timeToUint8Array(new Date().getTime());
console.log(timeArray);
// output: Uint8Array(13) [1, 6, 6, 6, 2, 7, 2, 4, 7, 4, 9, 6, 9 ]