Команда zdump в Linux с примерами
Опубликовано: 16 Февраля, 2022
Команда zdump в Linux используется для печати текущего времени в указанной зоне, или вы можете сказать, печатает текущее время в каждом имени зоны, указанном в командной строке.
Синтаксис:
zdump [--version] [--help] [-v] [-c [loyear,] hiyear] [имя зоны ...]
Пример:
zdump Индия
Параметры:
- -v : This option is used to print the following time values:
- The time at the lowest possible time value.
- The time one day after the lowest possible time value.
- The times both one second before and exactly at each detected time discontinuity.
- The time at one day less than the highest possible time value.
- The time at the highest possible time value.
Each line ends with
isdst
=1 if the given time is Daylight Saving Time orisdst
=0 otherwise.Example:
zdump -v Japan
- -c : This option is used to cut the verbose (-v) output near the start of the given year.
Example:
zdump -v -c 1930 Japan
- –version : This option is used to display the version of the command.
zdump --version
- –help : This option is used to display short message about the options in the command.