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.
17 lines
321 B
17 lines
321 B
1 year ago
|
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)
|
||
|
}
|
||
|
|
||
|
}
|