The Wayback Machine - https://web.archive.org/web/20230512160215/https://www.geeksforgeeks.org/zdump-command-in-linux-with-examples/
Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

zdump command in Linux with Examples

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

The zdump command in Linux is used to print the current time in the specified zone or you can say prints the current time in each zonename named on the command line.

Syntax:

zdump [--version] [--help] [-v] [-c [loyear, ]hiyear] [zonename...]

Example:

zdump India

Options:

  • -v : This option is used to print the following time values:
    1. The time at the lowest possible time value.
    2. The time one day after the lowest possible time value.
    3. The times both one second before and exactly at each detected time discontinuity.
    4. The time at one day less than the highest possible time value.
    5. The time at the highest possible time value.

    Each line ends with isdst=1 if the given time is Daylight Saving Time or isdst=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.
My Personal Notes arrow_drop_up
Last Updated : 01 May, 2019
Like Article
Save Article
Similar Reads