| // Copyright (C) 2016 the V8 project authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| /*--- |
| esid: sec-date.prototype.gettime |
| es6id: 20.3.4.10 |
| description: Return value for valid dates |
| info: | |
| 1. Return ? thisTimeValue(this value). |
| ---*/ |
| |
| assert.sameValue(new Date(0).getTime(), 0, '+0'); |
| assert.sameValue(new Date(-0).getTime(), 0, '-0'); |
| assert.sameValue(new Date(-1).getTime(), -1); |
| assert.sameValue(new Date(1).getTime(), 1); |
| assert.sameValue(new Date(8640000000000000).getTime(), 8640000000000000); |
| assert.sameValue(new Date(-8640000000000000).getTime(), -8640000000000000); |