Datetime.OffsetDateTime.from_instant.date: def of bend-time-lib@0.4.0.1 Import: import bend-time-lib@0.4.0.1/datetime.bend as Datetime Lines 198-213 of bend-time-lib@0.4.0.1/datetime.bend: https://jend.leeeet.dev/read.txt?path=bend-time-lib@0.4.0.1/datetime.bend&start_line=198&end_line=213 import Base import bend-time-lib@0.4.0.1/date.bend as D def OffsetDateTime.from_instant.date( +sod: U32, offset: UtcOffset, r: Result<&2, &2, D.Date.Error, D.Date> ) -> Result<&2, &2, D.Date.Error, OffsetDateTime>: match r: case Fail{e}: Fail{e} case Done{date}: OffsetDateTime.from_instant.clock( offset, date, TimeOfDay.from( U32.div(sod, 3600), U32.div(U32.mod(sod, 3600), 60), U32.mod(sod, 60), FracNone{} ) ) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.div https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.mod https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/date.bend&name=Date https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/date.bend&name=Date.Error https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/datetime.bend&name=OffsetDateTime https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/datetime.bend&name=OffsetDateTime.from_instant.clock https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/datetime.bend&name=TimeFrac https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/datetime.bend&name=TimeOfDay.from https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/datetime.bend&name=UtcOffset