Displaying 1 result from an estimated 1 matches for "tp3685436p3685436".
2011 Jul 21
1
How to convert 3-digits hours
Hi, all
Here is what I try to do.
> strptime('20110101 0900',"%Y%m%d %H%M")
[1] "2011-01-01 09:00:00"
> strptime('20110101 900',"%Y%m%d %H%M")
[1] NA
If I have a 3-digit hour like '900', please show me how to convert it to 9:00:00.
Thank you in advance.
Wonjae
[[alternative HTML version deleted]]