luxon timestamp

JavaScript
const dt = DateTime.local();
dt.toMillis()
// or
dt.valueOf();
Source

Also in JavaScript: