📜  runtime=$(date +\%Y\%m\%d\%H\%M\%S) - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:08.998000             🧑  作者: Mango

代码示例2
# Time Zones
# Some z and z specifiers show the current active time zone
echo $(date '+%z'   ) # +0200
echo $(date '+%:z'  ) # +02:00
echo $(date '+%::z' ) # +02:00:00
echo $(date '+%:::z') # +02         (Print required precision only)
echo $(date '+%Z'   ) # CEST        (Alphabetic timezone abbreviation)