In a text file, I have a field with character values that look like this:
"00:01:53.910"
Where the value is in fact a time in hours:minutes:seconds.
I want to convert this to a numeric value. In this example, it should be 113.91 seconds.
Tried using this code in R and I get 1606287714
as.numeric(strptime("00:01:53.910",format='%H:%M:%OS'))
I believe the problem has to do with it adding the current date to the calculation because when I run
strptime("00:01:53.910",format='%H:%M:%OS')
I get "2020-11-25 00:01:53.91 MST"