Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LocalDateTime.now.until(
- LocalDateTime.now.`with`(LocalTime.of(15, 0)).`with`(TemporalAdjusters.nextOrSame(DayOfWeek.FRIDAY)),
- ChronoUnit.MILLIS
- ) match {
- case ticks if ticks >= 0 => println(s"It's $ticks milliseconds until beer o'clock!")
- case ticks if ticks < 0 => println(s"It has been beer o'clock for ${ticks * -1} milliseconds! :o Time to get wrecked!")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement