package Ġio . gitlab . art urb os ch . tin bo . time Ċ Ċ import Ġjava . time . LocalDate Ċ Ċ /** Ċ Ġ* Ġ@ author ĠArt ur ĠB os ch Ċ Ġ*/ Ċ Ċ fun Ġweek Range ( today : ĠLocalDate ): ĠPair < LocalDate , ĠLocalDate > Ġ{ Ċ ĉ val Ġday OfWeek Ġ= Ġtoday . day OfWeek Ċ ĉ val Ġfrom Ġ= Ġday OfWeek . value Ġ- Ġ 1 Ċ ĉ val Ġto Ġ= Ġ 7 Ġ- Ġday OfWeek . value Ċ ĉ return Ġtoday . minus Days ( from . to Long ()) Ġto Ġtoday . plus Days ( to . to Long ()) Ċ } Ċ Ċ fun ĠTime Entry . time As Minutes (): ĠInt Ġ= Ġ( hours Ġ* Ġ 6 0 Ġ+ Ġminutes ). toInt () Ċ Ċ @ Throws ( IllegalArgumentException :: class ) Ċ fun ĠLong . validate In Hour Range (): ĠLong Ġ= Ċĉ ĉ if Ġ( this Ġ>= Ġ 6 0 ) Ġthrow ĠIllegalArgumentException (" Minutes Ġand Ġseconds Ġmust Ġbe Ġ< Ġ 6 0 !") Ġelse Ġthis