java.time.OffsetTime.query() 方法示例 java.time.OffsetTime.plusSeconds() 方法示例 java.time.OffsetTime.toLocalTime() java.time.OffsetTime.query() 方法示例 package com.codingdict; import java.time.OffsetTime; import java.time.temporal.TemporalQueries; public class OffsetTimeDemo { public static void main(String[] args) { OffsetTime date = OffsetTime.parse("10:15:30+01:00"); System.out.printf("OffsetTime precision is %s%n", date.query(TemporalQueries.precision())); } } java.time.OffsetTime.plusSeconds() 方法示例 java.time.OffsetTime.toLocalTime()