var clockTime = System.getClockTime(); var zone = clockTime.timeZoneOffset / 3600f; System.println(zone.format("%+.f"));