Posted By

vaibhav011286 on 10/04/11


Tagged


Versions (?)

Minimized unix timestamp in JS


 / Published in: JavaScript
 

  1. function time() {
  2. return Math.floor((new Date).getTime() / 1E3)
  3. }
  4.  
  5. // returns 1317660968 //just like php do

Report this snippet  

You need to login to post a comment.