How can I retrive the time only with xlconnect?
I have data saved in .xlsx file, and in the data the columns date and time separated. However, I type the code; data1<-readWorksheetFromFile("file.xlsx", sheet="Sheet1") to retrive data into R. As a consequence, I am getting the time column in the R environment, with nonsense date attached to it. So the time column in R looks like 1899-12-31 16:07:11 , what I want only the take the time as 16:07:11 in this case. How can that be done ? Martin Studer XLConnect uses POSIXct to represent date-time values in a data.frame . If you only want to extract the time component you may use strftime(your