package Ġgr . ex m . ag ro xm . util Ċ Ċ import Ġjava . time . Instant Ċ import Ġjava . time . LocalDateTime Ċ import Ġjava . time . Zone Id Ċ import Ġjava . time . Zone Offset Ċ import Ġjava . time . format . DateTime Formatter Ċ import Ġjava . time . format . Format Style Ċ import Ġjava . util . concurrent . TimeUnit Ċ Ċ fun ĠLocalDateTime . start Of Hour (): ĠLocalDateTime Ġ{ ĊĠĠĠ Ġreturn Ġthis . with Minute ( 0 ). with Second ( 0 ). with Nano ( 0 ) Ċ } Ċ Ċ fun ĠLocalDateTime . end Of Hour (): ĠLocalDateTime Ġ{ ĊĠĠĠ Ġreturn Ġthis . plus Hours ( 1 ). start Of Hour () Ċ } Ċ Ċ fun ĠLocalDateTime . end OfDay (): ĠLocalDateTime Ġ{ ĊĠĠĠ Ġreturn Ġthis . apply Ġ{ ĊĠĠĠĠĠĠĠ Ġplus Days ( 1 ) ĊĠĠĠĠĠĠĠ Ġwith Hour ( 0 ) ĊĠĠĠĠĠĠĠ Ġwith Minute ( 0 ) ĊĠĠĠĠĠĠĠ Ġwith Second ( 0 ) ĊĠĠĠĠĠĠĠ Ġwith Nano ( 0 ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ fun ĠLocalDateTime . millis (): ĠLong Ġ{ ĊĠĠĠ Ġreturn ĠTimeUnit . SECONDS . to Millis ( this . at Zone ( Zone Offset . system Default ()). to Epoch Second ()) Ċ } Ċ Ċ fun Ġfrom Millis ( millis : ĠLong ): ĠLocalDateTime Ġ{ ĊĠĠĠ Ġreturn ĠLocalDateTime . of Instant ( Instant . of Epoch Milli ( millis ), ĠZone Id . system Default ()) Ċ } Ċ Ċ fun ĠLocalDateTime . format Default (): ĠString Ġ{ ĊĠĠĠ Ġreturn Ġformat ( DateTime Formatter . of Localized DateTime ( Format Style . MEDIUM )) Ċ }