I have a character vector like below which hold time in the format HH:MM:SS.sss such that it can be used for time series analysis in a dataframe
x <- "05:17:55.703"
I wanted to convert it into timestamp with milliseconds without date and timezone - is this even possible ?
What have I tried ->
> as.POSIXct("05:17:55.703",format = "%H:%M:%OS")
[1] "2019-09-19 05:17:55 IST"
Issue is that, it doesn't show the milliseconds part and shows the date and timezone which I would like to avoid
> as.POSIXlt("05:17:55.703",format = "%H:%M:%OS")
[1] "2019-09-19 05:17:55 IST"
Issue is that, it doesn't show the milliseconds part and shows the date and timezone which I would like to avoid
> as.POSIXlt("05:17:55.703",format = "%H:%M:%S.%OS")
[1] "2019-09-19 05:17:55 IST"
Issue is that, it doesn't show the milliseconds part and shows the date and timezone which I would like to avoid
> strptime("05:17:55.703", "%H:%M:%OS")
[1] "2019-09-19 05:17:55 IST"
Issue is that, it doesn't show the milliseconds part and shows the date and timezone which I would like to avoid