java.time.OffsetTime.plus(TemporalAmount amountToAdd)


java.time.OffsetTime.plus(TemporalAmount amountToAdd)

package com.codingdict;

import java.time.Duration;
import java.time.OffsetTime;

public class OffsetTimeDemo {
   public static void main(String[] args) {

      OffsetTime time = OffsetTime.parse("10:15:30+01:00");
      OffsetTime time1 = time.plus(Duration.ofHours(10));
      System.out.println(time1);  
   }
}