Sha256: efced6b91c5e442ad07faceb1ad34ab12c10b31eab514b9023dae2987cbec5ce

Contents?: true

Size: 157 Bytes

Versions: 22

Compression:

Stored size: 157 Bytes

Contents

class Example {
  def from(Date dateObject) {
    def seconds = dateObject.getTime() / 1000
    def gs = seconds + 10**9
    new Date((long) gs * 1000)
  }
}

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
trackler-2.0.1.0 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.0.10 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.0.9 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.0.8 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.0.7 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.0.6 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.0.5 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.0.4 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.0.3 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.0.2 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.0.1 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.0.0 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-1.0.4.1 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-1.0.4.0 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-1.0.3.0 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-1.0.2.1 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-1.0.2.0 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-1.0.1.2 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-1.0.1.1 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-1.0.1.0 tracks/groovy/exercises/gigasecond/Example.groovy