I am trying to read rows of a csv file. Each row represents a log history with timestamp at column 1. The timestamp is always in the form of YYYYMMDDHHMMSSTTT
(to the millisecond).
However, I do not know how to parse time in the format of YYYYMMDDHHMMSSTTT
and make it become an instance variable of a class that I am creating. In fact, I am not sure what type it should be in this case.
So, how should I go about parse time in the format of YYYYMMDDHHMMSSTTT
,i.e. 20180301093559127
? Thanks.