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

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -