News:

2023-03-15 Major improvements to the new Geolocation feature

Main Menu

Time truncated when reading

Started by AnK, September 29, 2015, 03:49:16 AM

Previous topic - Next topic

AnK

If I do 
$exiftool IMG_0502.JPG, I get (among other data) time with hundreds and tens of a sec.
Create Date                     : 2015:09:24 17:51:54.53
Date/Time Original              : 2015:09:24 17:51:54.53
Modify Date                     : 2015:09:24 17:51:54.53


but if I read that alone, I get only whole seconds.
$exiftool -ee -p '$datetimeoriginal' IMG_0502.JPG -n
2015:09:24 17:51:54

how can I get the rest ?



Hayo Baan

The DateTimeOriginal with the subseconds is actually a composite tag, and if you want to access it directly, you need to use its real name: SubSecDateTimeOriginal  (you can find the tag names for the tag descriptions using the -s option).

So in this case you could do this: $exiftool -subsecdatetimeoriginal IMG_0502.JPG

Hope this helps :)
Hayo Baan – Photography
Web: www.hayobaan.nl

AnK

thank you, - exactly what I needed.