How to collect the age of a subject as a variable
when starting an experiment, I would like to enter subject ID, date of birth and current date and then have opensesame log the sub_ID and sub_age for every trial/response as a variable. Ideally I would like to log both age in days and years.
I found information on getting the days between dates in python (https://stackoverflow.com/questions/151199/how-do-i-calculate-number-of-days-between-two-dates-using-python) but since I'm new to both OS and python, I'd like to learn from an example solution.
Thanks in advance!