Skip to content

Instantly share code, notes, and snippets.

@campanalbero
Last active December 23, 2015 17:59
Show Gist options
  • Save campanalbero/6672923 to your computer and use it in GitHub Desktop.
Save campanalbero/6672923 to your computer and use it in GitHub Desktop.
DSC_2315.JPG の EXIF の時刻を表示date_time_original を date_timeとすると、 EXIF でなくファイルのタイムスタンプになるようだ。
require 'rubygems'
require 'exifr'
puts EXIFR::JPEG::new('DSC_2315.JPG').date_time_original
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment