Author Topic: Calculated Variables, e.g subtract two dates?  (Read 3468 times)

Offline ccclapp

  • Newcomer
  • *
  • Posts: 9
    • View Profile
Calculated Variables, e.g subtract two dates?
« on: January 06, 2016, 01:23:32 PM »
Hi

I am a new user, but have read the entire wiki help file :-) but am unclear on a few things, including:

I would like to populate a metadata field with the time difference between two dates, specifically a person's current age minus the time between current date and image capture date.  The intent is to automate my "Caption" field with the age the person was on the date of the image. e.g. "John when he was ({CurrentAge} minus ({CurrentDate} minus {CaptureDate}))" = age of subject on capture date.

Can math be performed on variables?

Thanks very much!


Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24217
    • View Profile
    • Camera Bits, Inc.
Re: Calculated Variables, e.g subtract two dates?
« Reply #1 on: January 06, 2016, 03:10:11 PM »
I am a new user, but have read the entire wiki help file :-) but am unclear on a few things, including:

I would like to populate a metadata field with the time difference between two dates, specifically a person's current age minus the time between current date and image capture date.  The intent is to automate my "Caption" field with the age the person was on the date of the image. e.g. "John when he was ({CurrentAge} minus ({CurrentDate} minus {CaptureDate}))" = age of subject on capture date.

Can math be performed on variables?

No, math cannot be done on variables.

-Kirk

Offline ccclapp

  • Newcomer
  • *
  • Posts: 9
    • View Profile
Re: Calculated Variables, e.g subtract two dates?
« Reply #2 on: January 07, 2016, 09:38:41 AM »
Thanks I will look into ExifTool for this.