【问题标题】:Is there a command to batch change time zones of files? [closed]是否有批量更改文件时区的命令? [关闭]
【发布时间】:2019-12-19 12:52:43
【问题描述】:

我最近从英国去了日本 (UTC+9),但是,当我返回时,我忘记将 DLSR 相机上的时区改回 GMT。由于文件现在在我的 Linux 机器上,有没有办法批量更改我回家后拍摄的照片的时间戳,以便它们使用 GMT 而不是提前 9 小时?

【问题讨论】:

  • @Kent 请不要使用 cmets 部分回答问题。谢谢。

标签: bash datetime photo exif


【解决方案1】:

我使用 exiftool 找到了这个:

exiftool "-AllDates+=1:12:28 14:54:32" -verbose *.jpg

通过添加 1 年 12 个月 28 天 14 小时 54 分钟 32 秒来调整所有 JPG 图片日期

photo.stackexchange: How to shift EXIF date/time created by time in days, hours, minutes?

因此,要将所有照片降低 9 小时,您可以:

exiftool "-AllDates-=09:00:00" /path/to/IMG*.JPG

然后

exiftool '-FileModifyDate<DateTimeOriginal' /path/to/IMG*.JPG

用于从 exif 信息设置文件系统日期/时间。

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-01-03
  • 2013-09-24
  • 2020-09-29
  • 2022-08-19
  • 2017-11-10
相关资源
最近更新 更多