Responses for exercises in Exercism.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import java.time.LocalDateTime |
|
import java.time.LocalDate |
|
|
|
class Gigasecond { |
|
|
|
static long GIGASECOND = 1_000_000_000 |
|
|
|
static LocalDateTime add(LocalDate initial) { |
|
add(initial?.atStartOfDay()) |
|
} |
|
|
|
static LocalDateTime add(LocalDateTime initial) { |
|
initial?.plusSeconds(GIGASECOND) |
|
} |
|
|
|
}
|
|
|