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.2.1.98 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.97 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.96 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.95 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.94 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.93 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.92 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.91 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.90 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.89 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.88 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.87 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.86 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.85 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.84 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.83 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.82 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.81 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.80 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.79 tracks/groovy/exercises/gigasecond/Example.groovy