Created
August 30, 2018 16:07
-
-
Save Atternatt/22f3be8f4cc05bdae3e2b4f40add3a4e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val day = today | |
val todayOnWeekInTheFuture = today + 1.week | |
//the power of infix | |
val isBefore = day isBefore todayOnWeekInTheFuture | |
day.formatedDateText("dd/MM/yyyy") | |
val oneJan2020at10Oclock = Dates.of(2020, 1, 1,10) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment