search for: 17_35_14

Displaying 3 results from an estimated 3 matches for "17_35_14".

2017 Jan 11
2
bug with strptime, %OS, and "."
...0600, Dirk Eddelbuettel wrote: > > On 10 January 2017 at 17:48, frederik at ofb.net wrote: > | Hi R Devel, > | > | I just ran into a corner case with 'strptime'. Recall that the "%OS" > | conversion accepts fractional seconds: > | > | > strptime("17_35_14.01234.mp3","%H_%M_%OS.mp3")$sec > | [1] 14.01234 > | > | Unfortunately for my application it seems to be "greedy", in that it > | tries to parse a decimal point which might belong to the rest of the > | format: > | > | > strptime("17_35_14.mp3...
2017 Jan 11
4
bug with strptime, %OS, and "."
Hi R Devel, I just ran into a corner case with 'strptime'. Recall that the "%OS" conversion accepts fractional seconds: > strptime("17_35_14.01234.mp3","%H_%M_%OS.mp3")$sec [1] 14.01234 Unfortunately for my application it seems to be "greedy", in that it tries to parse a decimal point which might belong to the rest of the format: > strptime("17_35_14.mp3","%H_%M_%OS.mp3") [1] NA If I us...
2017 Jan 11
0
bug with strptime, %OS, and "."
Works for me: > strptime("17_35_14.01234.mp3","%H_%M_%OS")$sec [1] 14.01234 > strptime("17_35_14.mp3","%H_%M_%OS")$sec [1] 14 Just leave off the ".mp3" in your time pattern. Relevant section from the help ("Details") for strptime: strptime converts character vectors to clas...