run

val dayOfYear: Int = Calendar.getInstance().run { 
  set(Calendar.YEAR, 2030)
  get(Calendar.DAY_OF_YEAR)
}
Back Home Next