[JAV] ZonedDateTime
import java.time.ZoneId;
import java.time.ZonedDateTime;
/*from w ww .j a v a 2 s. co m*/
public class Main {
public static void main(String[] args) {
ZonedDateTime z = ZonedDateTime.now(ZoneId.systemDefault());
System.out.println(z);
}
}
http://www.java2s.com/Tutorials/Java/java.time/ZonedDateTime/2660_ZonedDateTime.now_ZoneId_zone.htm