Sha256: 805142293253f909595a6f6a4ed66820f04bd6f979a5c6585789f752f93a7e4b

Contents?: true

Size: 438 Bytes

Versions: 171

Compression:

Stored size: 438 Bytes

Contents

import java.time.LocalDateTime;
import java.time.LocalDate;

public class Gigasecond {

    private LocalDateTime birthDateTime;

    public Gigasecond(LocalDateTime birthDateTime) {
        this.birthDateTime = birthDateTime;
    }

    public Gigasecond(LocalDate birthDate) {
        this.birthDateTime = birthDate.atTime(0, 0);
    }

    public LocalDateTime getDate() {
        return birthDateTime.plusSeconds(1000000000);
    }
}

Version data entries

171 entries across 171 versions & 1 rubygems

Version Path
trackler-2.1.0.15 tracks/java/exercises/gigasecond/src/example/java/Gigasecond.java
trackler-2.1.0.14 tracks/java/exercises/gigasecond/src/example/java/Gigasecond.java
trackler-2.1.0.13 tracks/java/exercises/gigasecond/src/example/java/Gigasecond.java
trackler-2.1.0.12 tracks/java/exercises/gigasecond/src/example/java/Gigasecond.java
trackler-2.1.0.11 tracks/java/exercises/gigasecond/src/example/java/Gigasecond.java
trackler-2.1.0.10 tracks/java/exercises/gigasecond/src/example/java/Gigasecond.java
trackler-2.1.0.9 tracks/java/exercises/gigasecond/src/example/java/Gigasecond.java
trackler-2.1.0.8 tracks/java/exercises/gigasecond/src/example/java/Gigasecond.java
trackler-2.1.0.7 tracks/java/exercises/gigasecond/src/example/java/Gigasecond.java
trackler-2.1.0.6 tracks/java/exercises/gigasecond/src/example/java/Gigasecond.java
trackler-2.1.0.5 tracks/java/exercises/gigasecond/src/example/java/Gigasecond.java
trackler-2.1.0.4 tracks/java/exercises/gigasecond/src/example/java/Gigasecond.java
trackler-2.1.0.3 tracks/java/exercises/gigasecond/src/example/java/Gigasecond.java
trackler-2.1.0.2 tracks/java/exercises/gigasecond/src/example/java/Gigasecond.java
trackler-2.1.0.1 tracks/java/exercises/gigasecond/src/example/java/Gigasecond.java
trackler-2.1.0.0 tracks/java/exercises/gigasecond/src/example/java/Gigasecond.java
trackler-2.0.8.55 tracks/java/exercises/gigasecond/src/example/java/Gigasecond.java
trackler-2.0.8.54 tracks/java/exercises/gigasecond/src/example/java/Gigasecond.java
trackler-2.0.8.53 tracks/java/exercises/gigasecond/src/example/java/Gigasecond.java
trackler-2.0.8.52 tracks/java/exercises/gigasecond/src/example/java/Gigasecond.java