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.40 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.39 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.38 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.37 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.36 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.35 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.34 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.33 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.32 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.31 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.30 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.29 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.28 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.27 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.26 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.25 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.24 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.23 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.22 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.0.6.21 tracks/groovy/exercises/gigasecond/Example.groovy