Converts short (old) 'z-Tree' dates into long (new) 'z-Tree' dates.
Converts short (old) 'z-Tree' dates into long (new) 'z-Tree' dates.
Old versions of 'z-Tree' stored dates as, e.g. 050613JN (the first six being year-month-date, the last two characters are the time). Newer versions use strings like 091112_1600 (time is now in the last four characters). This function converts the old format into the new format
toLongDate(shortDate)
Arguments
shortDate: This should be a vector of strings, each of length 8 characters. The first six characters of each element of shortDate are year, month, date. The last two chacters encode the time of the experiment.
Returns
A vector of the same length as shortDate. The first six characters of each element are unchanged. The last five characters are now the time translated.