Java tutorial
import java.time.OffsetTime; import java.time.ZoneId; import java.time.temporal.Temporal; public class Main { public static void main(String[] args) { OffsetTime m = OffsetTime.now(); Temporal n = m.adjustInto(OffsetTime.now(ZoneId.systemDefault())); System.out.println(n); } }