Re: [R] Change date time to epoch time

2013-11-16 Thread Jeff Newmiller
There are many epochs. Which one are you interested in? If you are interested in the POSIX time_t epoch, then you could look at ?DateTimeClasses to find out about ?as.POSIXct. You might also find my email on inputting zones informative [1]. Also, per the Posting Guide, please don't post in html

Re: [R] Change date time to epoch time

2013-11-16 Thread David Winsemius
On Nov 16, 2013, at 8:46 PM, vivek kumar singh wrote: 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] 1384656

[R] Change date time to epoch time

2013-11-16 Thread vivek kumar singh
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] N