inUtc method

ZonedDateTime inUtc()

Implementation

ZonedDateTime inUtc() {
  // Bypass any determination of offset and arithmetic, as we know the offset is zero.
  // var ymdc = GregorianYearMonthDayCalculator.getGregorianYearMonthDayCalendarFromDaysSinceEpoch(epochDay);
  // todo: seems a bit much -- simplify?
  var offsetDateTime = IOffsetDateTime.fullTrust(LocalDateTime.localDateAtTime(LocalDate.fromEpochDay(epochDay), LocalTime.sinceMidnight(epochDayTime)), Offset.zero);
  return IZonedDateTime.trusted(offsetDateTime, DateTimeZone.utc);
}