Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/main/scala/Gigasecond.scala
Original file line number Diff line number Diff line change
@@ -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
}
}