Hi All,

I have time series data in (Year-month-date-hour-minute-second) format 
and i want to convert it to epoch time.

I have tried the following:
*> Sys.time()**
**[1] "2013-11-17 10:39:46 MYT"**
**> as.numeric(Sys.time())**
**[1] 1384656006**
**> as.numeric("2013-11-17 10:39:46 MYT")**
**[1] NA**
**Warning message:**
**NAs introduced by coercion **
**> as.numeric("2013-11-17 10:39:46 MYT")**
**[1] NA**
**Warning message:**
**NAs introduced by coercion **
*
Please let me know which function in R converts date-time to epoch time.

Regards,
Vivek

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to