How do I get current timestamp with milliseconds precision?
I tried the option of setting digits.secs=3
but, couldn't get the milliseconds part.
> op<-options(digits.secs=3)
> format(Sys.time(),format="%Y-%m-%d %H:%M:%S.%s")
[1] "2015-01-07 22:44:51.1420650891"
> library(lubridate)
> format(now(),format="%Y-%m-%d %H:%M:%S.%s")
[1] "2015-01-07 22:45:15.1420650915"
I need the milliseconds precision specifically as that is how the rest of the system is set-up.