Java Almanac and Examples Collection
Back to Main ⇒ Base
Use Instant to get epoch milliseconds.
Instant
OffsetDateTime hostTimestamp; hostTimestamp.toInstant().toEpochMilli();