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
Post a Comment