获取带时区的日期时间类

public class T1 {
    public static void main(String[] args) {
        ZonedDateTime now = ZonedDateTime.now();
        System.out.println(now);
    }
}

posted @ 2023-11-22 10:49  爱新觉罗LQ  阅读(16)  评论(0)    收藏  举报