zdump
Dump time zone information
TLDR
Print the current time in a timezone
Display help
SYNOPSIS
zdump [ -v ] [ -c cutoff_year ] [ timezone ... ]
PARAMETERS
-v
Verbose mode. Shows all time transitions in the specified time zone(s).
-c cutoff_year
Cutoff year. Shows transitions up to and including the specified year.
timezone
One or more time zone names (e.g., 'America/Los_Angeles').
DESCRIPTION
zdump is a command-line utility used to dump time zone information for specified time zones. It reads the system's time zone database and outputs the current and historical time information for each named zone.
This is useful for verifying time zone transitions (DST), checking the accuracy of time zone data, and debugging time zone related issues in applications or scripts. zdump displays the local time, UTC time, and the offset from UTC for each time zone and time specified. It’s an essential tool for system administrators and developers who need to understand or troubleshoot time zone behavior.
EXAMPLES
To show the current time in 'America/Los_Angeles':
zdump America/Los_Angeles
To show all time transitions in 'Europe/London':
zdump -v Europe/London
To show transitions up to the year 2030 in 'Asia/Tokyo':
zdump -c 2030 Asia/Tokyo
HISTORY
zdump has been part of the tz database (also known as the IANA time zone database) for a long time and is essential for the maintenance of correct timezone information, used by almost every computer systems.