package Ġio . is land time . internal Ċ Ċ import Ġdev . erik ch rist ens en . jav am ath 2 k mp . floor Div Ċ import Ġio . is land time .* Ċ Ċ internal Ġfun Ġto Time At ( offset : ĠU tc Offset , Ġsecond Of Unix Epoch : ĠLong , Ġnan ose cond : ĠInt ): ĠTime Ġ{ ĊĠĠĠ Ġval Ġnan ose cond OfDay Ġ= Ġ(( second Of Unix Epoch Ġ% ĠSE CON DS _ PER _ DAY ) Ġ* ĠN AN O SECONDS _ PER _ SECOND ĊĠĠĠĠĠĠĠ Ġ+ Ġnan ose cond Ġ+ Ġoffset . total Seconds . in Nan oseconds . value Ġ+ ĠN AN O SECONDS _ PER _ DAY ) Ġ% ĠN AN O SECONDS _ PER _ DAY ĊĠĠĠ Ġreturn ĠTime . from Nan ose cond OfDay ( nan ose cond OfDay ) Ċ } Ċ Ċ internal Ġfun Ġto Offset Time At ( offset : ĠU tc Offset , Ġsecond Of Unix Epoch : ĠLong , Ġnan ose cond : ĠInt ): ĠOffset Time Ġ{ ĊĠĠĠ Ġreturn Ġto Time At ( offset , Ġsecond Of Unix Epoch , Ġnan ose cond ) Ġat Ġoffset Ċ } Ċ Ċ internal Ġfun Ġto Date At ( offset : ĠU tc Offset , Ġsecond Of Unix Epoch : ĠLong ): ĠDate Ġ{ ĊĠĠĠ Ġval Ġday Of Unix Epoch Ġ= Ġ( second Of Unix Epoch Ġ+ Ġoffset . total Seconds . value ) Ġfloor Div ĠSE CON DS _ PER _ DAY ĊĠĠĠ Ġreturn ĠDate . from Day Of Unix Epoch ( day Of Unix Epoch ) Ċ } Ċ Ċ internal Ġfun Ġto DateTime At ( offset : ĠU tc Offset , Ġsecond Of Unix Epoch : ĠLong , Ġnan ose cond : ĠInt ): ĠDateTime Ġ{ ĊĠĠĠ Ġreturn ĠDateTime . from Second Of Unix Epoch ( second Of Unix Epoch , Ġnan ose cond , Ġoffset ) Ċ } Ċ Ċ internal Ġfun Ġto Offset DateTime At ( offset : ĠU tc Offset , Ġsecond Of Unix Epoch : ĠLong , Ġnan ose cond : ĠInt ): ĠOffset DateTime Ġ{ ĊĠĠĠ Ġreturn ĠOffset DateTime . from Second Of Unix Epoch ( second Of Unix Epoch , Ġnan ose cond , Ġoffset ) Ċ } Ċ