Return to Snippet

Revision: 43326
at March 22, 2011 02:47 by samwa


Initial Code
var cacheBreak = Math.round(new Date().getTime()/1000.0);

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

Initial Description
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

Initial Title
Javascript epoch time

Initial Tags
javascript, cache

Initial Language
JavaScript