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.139 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.138 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.137 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.136 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.135 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.134 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.133 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.132 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.131 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.130 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.129 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.128 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.127 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.126 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.125 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.124 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.123 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.122 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.121 tracks/groovy/exercises/gigasecond/Example.groovy
trackler-2.2.1.120 tracks/groovy/exercises/gigasecond/Example.groovy