r - Rscript Linux timestamp to ISO Date format -


how can take linux timestamp , convert following string format?

linux time = 1426644063000 iso date format = "2015-03-18t02:01:03.000z" 

strptime might 1 option there simpler solution?

thanks

this how solved it:

x <- 1426644063000 format(as.posixct(x/1000, origin="1970-01-01", tz="utc"), "%y-%m-%dt%h:%m:%sz") output: "2015-03-18t02:01:03z" 

Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -