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.159 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.158 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.157 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.156 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.155 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.154 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.153 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.152 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.151 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.150 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.149 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.148 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.147 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.146 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.145 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.144 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.143 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.142 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.141 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.140 tracks/groovy/exercises/gigasecond/Example.groovy