[R] difference between date and times
Benilton Carvalho
beniltoncarvalho at gmail.com
Tue Feb 23 16:32:14 CET 2010
dd = as.POSIXlt(c("2007-02-21 05:19:00", "2007-02-20 14:21:53"),
format="%Y-%m-%d %H:%M:%S")
dd[1]-dd[2]
b
On Tue, Feb 23, 2010 at 2:48 PM, karine heerah <karine.heerah at hotmail.fr> wrote:
>
> Hi,
>
>
>
> I have date and time in a format like this: " 2007-02-21 05:19:00".
>
> Do you which function i can use to derterminate the difference in time between this value and an other one.
>
> For exemple:
>
>
>
> this one : 2007-02-21 05:19:00
>
> and this one : 2007-02-20 14:21:53
>
>
>
> Thanks a lot,
>
> Karine H.
>
>
>
>
>
>
> _________________________________________________________________
> [[elided Hotmail spam]]
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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.
>
More information about the R-help
mailing list