Add instruction for repeat
Fix a stupid mistake where year was stored in the month value
First step of tdata_realtime function renaming