Expand description
The day a photo or video was taken, which decides its album.
In order of preference:
- EXIF
DateTimeOriginal(orDateTimeDigitized): JPEG, HEIC, PNG, TIFF and RAW files. Camera wall-clock time, used as is. - QuickTime/MP4 metadata: Apple’s
com.apple.quicktime.creationdate(local time), else the movie header’s creation time (UTC, shown in the local time zone, i.e.TZ). - A date in the file name (
IMG_20140712_…,2014-07-12 …,IMG-20140712-WA0001,FB_IMG_1405171391000). - EXIF
DateTime(when the file was last written, often by an editor or scanner, so a weaker hint than the name). - The file’s modification time.
Enums§
- Date
Source - Where a file’s date came from.
Functions§
- capture_
date path’s capture date.datais the whole file when the caller already has it in memory (RAW files, which are read whole anyway); otherwise only the parts holding metadata are read.- file_
name_ date - A date in a file name: eight digits (
20140712) or year, month and day split by-,_or.(2014-07-12), not part of a longer number; or a Unix timestamp in milliseconds or seconds (1405171391000), as Facebook and some messengers name files. - metadata_
date - The date from metadata alone (EXIF or video), for dating a Live Photo video by its photo.