No really, what Jim said: you need the % for H:M:S as well.

> dd<-c("21/01 11:11:11")
> strptime(dd,"%d/%m %H:%M:%S")
[1] "2015-01-21 11:11:11 EST"

On Wed, Jun 10, 2015 at 8:03 AM, khatri <dheeraj.kha...@abzooba.com> wrote:
> Hey sorry for my typing.
> I have actually used the same format with % that is
>
>
>> dd<-c("21/01 11:11:11")
>> strptime(dd,"%d/%m H:M:S")
> [1] NA
>
>
> it is giving NA.
>
>
>


-- 
Sarah Goslee
http://www.functionaldiversity.org

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to