I have a CSV file with several entries, and each entry has 2 unix timestamp formatted dates.
I have a method called convert()
, which takes in the timestamp and converts it to YYYYMMDD
.
Now, since I have 2 timestamps in each line, how would I replace each one with the new value?
EDIT: Just to clarify, I would like to convert each occurrence of the timestamp into the YYYYMMDD
format. This is what is bugging me, as re.findall()
returns a list.