This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function timestamp() { | |
const currentDate = new Date(); | |
const day = currentDate.getDate(); | |
const month = currentDate.getMonth() + 1; | |
const year = currentDate.getFullYear(); | |
const hours = currentDate.getHours(); | |
const minutes = currentDate.getMinutes(); | |
const seconds = currentDate.getSeconds(); | |
let ms = currentDate.getMilliseconds(); | |
if (ms < 10) { |