Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. temp
  2. [1] "2014/12/22" "14:48:51" "800"
  3.  
  4. temp <- gsub("/","-",paste(temp[1],paste(temp[2],temp[3],sep="."),sep=" "))
  5. [1] "2014-12-22 14:48:51.800"
  6.  
  7. op <- options(digits.secs = 3)
  8. options(op)
  9. Date_time <- as.POSIXlt(strptime(temp, format="%Y-%m-%d %H:%M:%OS"))
  10. [1] "2014-12-22 14:48:51.8 IST"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement