ZoneOffset getId()
gets the normalized zone offset ID.
getId
has the following syntax.
public String getId()
The following example shows how to use getId
.
import java.time.ZoneOffset; public class Main { public static void main(String[] args) { ZoneOffset z = ZoneOffset.UTC; String t = z.getId(); System.out.println(t); } }
The code above generates the following result.