Show current unix timestamp

From LemonWiki共筆
Jump to navigation Jump to search


Language Data example Explanation
PHP 1653908484 (10 chars) seconds
JavaScript 1653908707560 (13 chars) miniseconds

PHP[edit]

<?php

echo time();

?>

JavaScript[edit]

var timeInMs = Date.now();
console.log(timeInMs);