Java-查看当前JVM及操作系统时区

1.JVM

# 查看java进程号
jps -l

# 查看时区信息
jinfo -sysprops $PID | grep user.timezone

image-20240624165516067

2.操作系统

2.1 Linux

timedatectl

image-20240624165403264

2.2 Windows

tzutil /g
image-20240624165738469
posted @ 2024-06-24 16:58  羊37  阅读(13)  评论(0编辑  收藏  举报