JSFiddle - React, Tailwind, and code Playground

by naryad

JavaScript

var now = new Date;
var utc_timestamp = Date.UTC(now.getFullYear(),now.getMonth(), now.getDate() , 
      now.getHours(), now.getMinutes(), now.getSeconds(), now.getMilliseconds());
document.write("Local timestamp " + now.getTime())
document.write("<br/>")
document.write("UTC timestamp  " + utc_timestamp)