Sha256: 972a801473fb30cd7217d7a5864b56e5fccd9e55d8c943fd96d5280a580eb366

Contents?: true

Size: 152 Bytes

Versions: 374

Compression:

Stored size: 152 Bytes

Contents

import groovy.time.TimeCategory

class Gigasecond {

    static Date from(Date date) {
        use ( TimeCategory ) { date + (10**9).seconds }
    }

}

Version data entries

374 entries across 374 versions & 1 rubygems

Version Path
trackler-2.0.8.15 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.8.14 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.8.13 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.8.12 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.8.11 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.8.10 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.8.9 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.8.8 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.8.7 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.8.6 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.8.5 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.8.4 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.8.3 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.8.2 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.8.1 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.7.0 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.44 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.43 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.42 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.41 tracks/groovy/exercises/gigasecond/Example.groovy