Javascript epoch time


/ Published in: JavaScript
Save to your folder(s)

returns the number of seconds since 1 jan 1970
This is useful for generating a number in a url to stop a page from caching


Copy this code and paste it in your HTML
  1. var cacheBreak = Math.round(new Date().getTime()/1000.0);

URL: http://www.epochconverter.com/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.