Sha256: d13cb672fd6c61d3dcfc3214983ad2a685e762466cdbf25733c93aaca6c21581

Contents?: true

Size: 265 Bytes

Versions: 211

Compression:

Stored size: 265 Bytes

Contents

const GIGASECOND_IN_MILIS = 1e9 * 1e3;

export default class Gigasecond {

  constructor(dateOfBirth) {
    this.dateOfBirth = dateOfBirth;
  }

  date() {
    let birthTime = this.dateOfBirth.getTime();
    return new Date(birthTime + GIGASECOND_IN_MILIS);
  }

}

Version data entries

211 entries across 211 versions & 1 rubygems

Version Path
trackler-2.2.0.0 tracks/ecmascript/exercises/gigasecond/example.js
trackler-2.1.0.55 tracks/ecmascript/exercises/gigasecond/example.js
trackler-2.1.0.54 tracks/ecmascript/exercises/gigasecond/example.js
trackler-2.1.0.53 tracks/ecmascript/exercises/gigasecond/example.js
trackler-2.1.0.52 tracks/ecmascript/exercises/gigasecond/example.js
trackler-2.1.0.51 tracks/ecmascript/exercises/gigasecond/example.js
trackler-2.1.0.50 tracks/ecmascript/exercises/gigasecond/example.js
trackler-2.1.0.49 tracks/ecmascript/exercises/gigasecond/example.js
trackler-2.1.0.48 tracks/ecmascript/exercises/gigasecond/example.js
trackler-2.1.0.47 tracks/ecmascript/exercises/gigasecond/example.js
trackler-2.1.0.46 tracks/ecmascript/exercises/gigasecond/example.js
trackler-2.1.0.45 tracks/ecmascript/exercises/gigasecond/example.js
trackler-2.1.0.44 tracks/ecmascript/exercises/gigasecond/example.js
trackler-2.1.0.43 tracks/ecmascript/exercises/gigasecond/example.js
trackler-2.1.0.42 tracks/ecmascript/exercises/gigasecond/example.js
trackler-2.1.0.41 tracks/ecmascript/exercises/gigasecond/example.js
trackler-2.1.0.40 tracks/ecmascript/exercises/gigasecond/example.js
trackler-2.1.0.39 tracks/ecmascript/exercises/gigasecond/example.js
trackler-2.1.0.38 tracks/ecmascript/exercises/gigasecond/example.js
trackler-2.1.0.37 tracks/ecmascript/exercises/gigasecond/example.js