linghengqian commented on issue #17948: URL: https://github.com/apache/shardingsphere/issues/17948#issuecomment-1148301523
- According to java.time.temporal.TemporalQueries#chronology, we can divide the JSR310 classes that need to be supported into various types. - The smallest java.time.temporal.ChronoUnit is NANOS, there are LocalTime, LocalDateTime, ZonedDateTime, OffsetTime, OffsetDateTime, ChronoLocalDateTime ,ChronoZonedDateTime,Instant. - The smallest java.time.temporal.ChronoUnit is DAYS, there are LocalDate, ChronoLocalDate. - The smallest java.time.temporal.ChronoUnit is MONTHS, there is YearMonth. - The smallest java.time.temporal.ChronoUnit is YEARS, there is Year. - Temporary Era, MonthDay, ZoneOffset, DayOfWeek are not considered. - Since java.time.temporal.TemporalQueries#chronology cannot directly act on the TemporalAccessor interface, I think we should consider using TemporalAccessor#isSupported with ChronoField. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
