Possible Duplicate:
How R formats POSIXct with fractional seconds
I'm familiar with this question about "How R formats POSIXct with fractional seconds". An argument follows there, regarding whether POSIXct has numeric errors or not when dealing with micro-seconds.
Before I re-implement a whole set of xts functionalities that can deal without errors with micro-seconds (nothing wrong with xts - just that it required POSIXct), I just wanted to make sure:
Why is the output of the following line is 4.577894?
as.POSIXlt(as.POSIXct(sprintf("%s",(format(as.POSIXct("2012-12-14 15:42:04.577895 EDT"), "%Y-%m-%d %H:%M:%OS6")))))$sec
Thanks a lot!
EDIT
The rational behind this is the following: if I'm reading a time entry from a file, doing some processing, writing to file again, reading again etc., I get accumulated errors. So - this is not a 'trick' question, but actually comes after hours of debugging..