I am getting a Linux timestamp and then I am using POSIXct function in R to get date and time information. In case of linux timestamp how can i remove date information? Basically i want to convert 1421560227 to a number X such that when i run POSIXct function on X it will return "22:50:27".
Thanks
> dates=as.POSIXct(1421560227, origin="1970-01-01")
> dates
[1] "2015-01-17 22:50:27 MST"