package org.kodejava.util;
import java.util.TimeZone;
public class HostDefaultTimeZone {
public static void main(String[] args) {
// Gets the default TimeZone ID for this host
String id = TimeZone.getDefault().getID();
System.out.println("Default Time Zone ID: " + id);
}
}
The default timezone id for this host is:
Default Time Zone ID: Asia/Shanghai
Latest posts by Wayan (see all)
- How do I build simple search page using ZK and Spring Boot? - March 8, 2023
- How do I calculate days between two dates excluding weekends and holidays? - January 12, 2023
- How do I discover the quarter of a given date? - January 11, 2023