Skip to content

Instantly share code, notes, and snippets.

@lgawin
Created March 5, 2018 08:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgawin/9de43e240335716407a31364e1eeaaa3 to your computer and use it in GitHub Desktop.
Save lgawin/9de43e240335716407a31364e1eeaaa3 to your computer and use it in GitHub Desktop.
private inline val Calendar.year: Int
get() = get(Calendar.YEAR)
private inline val Calendar.month: Int
get() = get(Calendar.MONTH)
private inline val Calendar.day: Int
get() = get(Calendar.DAY_OF_MONTH)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment