using Dates added
added TimeData as output format
build Timedata from TimeArray