Show current unix timestamp

From LemonWiki共筆
Revision as of 16:29, 31 May 2022 by Unknown user (talk) (Created page with " <table class="wikitable sortable" border="1"> <tr> <th>Language</th> <th>Data example</th> <th>Explanation</th> </tr> <tr> <td>PHP</td> <td>1653908484 (10 chars)</td> <td>se...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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);