capture program drop dtime
program define dtime


local i=`2'
g byte tau`i'=`1'==`i'
local i=`i'+1
while `i'<=`3'  {
g byte tau`i'=`1'==`i'
local i=`i'+1
}


end
**************************************************************
* COMMAND: dtime NAME_OF_TIME FIRST_YEAR LAST_YEAR
* IT CREATES: tau19.. tau19.. ect.....