Java tutorial
import java.time.OffsetTime; import java.time.ZoneOffset; public class Main { public static void main(String[] args) { OffsetTime m = OffsetTime.now(); OffsetTime l = m.withOffsetSameLocal(ZoneOffset.UTC); System.out.println(l); } }