Examveda

What will be the output of the following R code?
> x <- as.POSIXct("2012-10-25 01:00:00")
> y <- as.POSIXct("2012-10-25 06:00:00", tz = "GMT")
> y-x

A. Time difference of 1 hour

B. Time difference of 1 min

C. Time difference of 1 sec

D. Time difference of 5 sec

Answer: Option A


This Question Belongs to R Programming >> Data Structures In R Programming

Join The Discussion

Related Questions on Data Structures in R Programming