Forrest logo
back to the exiftool tool

exiftool:tldr:193c9

exiftool: Move the date at which all photos in a directory were taken 1 hour forward.
$ exiftool "-AllDates+=0:0:0 1:0:0" ${path-to-directory}
try on your machine

The command you provided is using the "exiftool" utility to modify the dates of the files in a specified directory.

Here's a breakdown of the command:

  • exiftool is a command-line tool used for reading, writing, and editing metadata in files.
  • "-AllDates+=0:0:0 1:0:0" is an argument passed to the exiftool command. It consists of two parts: AllDates+=0:0:0 and 1:0:0.
    • AllDates is an option that specifies modifying all date tags in the file.
    • +=0:0:0 is used to add a time interval to the current date. In this case, it adds no years, no months, and no days (0:0:0).
    • 1:0:0 specifies that it should add 1 hour (1:0:0) to the existing time.
  • ${path-to-directory} is a placeholder for the directory path where you want to apply this modification. You should replace it with the actual path.

So, when executed, this command will add 1 hour to each file's dates (created, modified, and accessed) in the specified directory.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the exiftool tool