B2G/gecko/toolkit/components/satchel/test/unit/test_db_update_v1b.js
// Returns true if the timestamp is within 30 seconds of now.
Returns true if the timestamp is within 30 seconds of now.
Returns true if the timestamp is within 30 seconds of now .
function is_about_now(timestamp) {
  var delta = Math.abs(timestamp - 1000 * Date.now());
  var seconds = 30 * 1000000;
  return delta < seconds;
}
function is_about_now ( timestamp ) { var delta = Math . abs ( timestamp - 1000 * Date . now ( ) ) ; var seconds = 30 * 1000000 ; return delta < seconds ; }
Returns true if the timestamp is within 30 seconds of now.
Returns true if the timestamp is within 30 seconds of now .