| 1234567891011121314151617 |
- 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);
- }
- }
|