Skip to content

Instantly share code, notes, and snippets.

View cmacminn's full-sized avatar

Chris MacMinn cmacminn

View GitHub Profile
@cmacminn
cmacminn / getTimeStamp.m
Last active August 29, 2015 14:02
A MATLAB function to read the timestamp of an image file.
function t = getTimeStamp(path_str)
% Get the timestamp of an image file using EXIF metadata.
%
% INPUTS
% path_str: String specifying the (relative or absolute) path to the image, including the name and extension of the file (e.g., '~/Desktop/text.jpg'). Not case sensitive.
%
% OUTPUTS
% t: Timestamp of target image in seconds. Specifically, this is the number of seconds since the beginning of the most recent calendar month.
%
% HISTORY