We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2e8726 commit b9d80e1Copy full SHA for b9d80e1
common/src/main/scala/app/softnetwork/time/package.scala
@@ -15,6 +15,7 @@ package object time {
15
def toLocalDate: LocalDate = d
16
def toLocalDateTime: LocalDateTime = d
17
def toZonedDateTime: ZonedDateTime = d
18
+ def toEpochSecond: Long = d.toInstant.getEpochSecond
19
}
20
21
implicit def epochSecondToInstant(epochSecond: Long): Instant = {
0 commit comments