Skip to content

Instantly share code, notes, and snippets.

@Atternatt
Created August 30, 2018 16:07
Show Gist options
  • Save Atternatt/22f3be8f4cc05bdae3e2b4f40add3a4e to your computer and use it in GitHub Desktop.
Save Atternatt/22f3be8f4cc05bdae3e2b4f40add3a4e to your computer and use it in GitHub Desktop.
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