I am using hms to parse the time (hour, minutes, seconds, milliseconds) from timestamps in my data.
Unfortunately, I notice that hms seems to forget about the millisecond part of a time (in character format).
> as.hms("12:34:56")
12:34:56
> as.hms("12:34:56.542")
12:34:56
> options(digits.secs=3)
> as.hms("12:34:56.542")
12:34:56
Is that a bug? Having milliseconds is important because I sort the data according to time...
I am using
hmsto parse the time (hour, minutes, seconds, milliseconds) from timestamps in my data.Unfortunately, I notice that
hmsseems to forget about the millisecond part of a time (in character format).Is that a bug? Having milliseconds is important because I sort the data according to time...