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.6.20 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.19 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.18 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.17 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.16 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.15 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.14 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.13 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.12 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.11 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.10 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.9 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.8 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.7 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.6 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.5 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.4 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.3 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.2 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.1 tracks/groovy/exercises/gigasecond/Example.groovy