Sha256: 80f46e7f22c76039b6b75f366925a161085dceb142724acfc1c9550be0d32548
Contents?: true
Size: 488 Bytes
Versions: 172
Compression:
Stored size: 488 Bytes
Contents
import java.time.LocalDate import java.time.LocalDateTime import java.time.LocalTime object Gigasecond { private type Seconds = Long def addGigaseconds(startDate: LocalDate): LocalDateTime = { val startDateTime = LocalDateTime.of(startDate, LocalTime.of(0, 0)) addGigaseconds(startDateTime) } def addGigaseconds(startDateTime: LocalDateTime): LocalDateTime = startDateTime.plusSeconds(OneGigasecond) private val OneGigasecond: Seconds = math.pow(10, 9) toLong }
Version data entries
172 entries across 172 versions & 1 rubygems