diff --git a/src/main/scala/Gigasecond.scala b/src/main/scala/Gigasecond.scala index 5edba80..2e908a4 100644 --- a/src/main/scala/Gigasecond.scala +++ b/src/main/scala/Gigasecond.scala @@ -1,6 +1,14 @@ +import java.time.LocalDate +import java.time.LocalDateTime object Gigasecond { - def add(startDate: LocalDate): LocalDateTime = ??? + def add(startDate: LocalDate): LocalDateTime = { + val gigasecondMoment = startDate.atStartOfDay().plusSeconds(1000000000) + gigasecondMoment + } - def add(startDateTime: LocalDateTime): LocalDateTime = ??? + def add(startDateTime: LocalDateTime): LocalDateTime = { + val gigasecondMoment = startDateTime.plusSeconds(1000000000) + gigasecondMoment + } }