java.time.OffsetTime.isEqual() 方法示例 java.time.OffsetTime.isBefore() 方法示例 java.time.OffsetTime.isSupported() 方法示例 java.time.OffsetTime.isEqual() 方法示例 package com.codingdict; import java.time.OffsetTime; public class OffsetTimeDemo { public static void main(String[] args) { OffsetTime time = OffsetTime.parse("12:30:30+01:00"); OffsetTime time1 = OffsetTime.parse("12:35:30+01:00"); System.out.println(time1.isEqual(time)); } } java.time.OffsetTime.isBefore() 方法示例 java.time.OffsetTime.isSupported() 方法示例