To Get Unix timestamp value in seconds
Java:
Python:
Erlang:
JavaScript:
Java:
long timestamp = System.currentTimeMillis()/ 1000 |
import time timestamp = int (time.time()) |
{ Mega , Secs , _} = now(), Timestamp = Mega *1000000 + Secs , |
var ts = Math.floor(Date.now()/1000); // You can also use new Date().getTime()/1000 but this one is faster
Php:
$stamp = time();
|
No comments:
Post a Comment