Converting java.sql.Timestamp to java.util.Calendar without losing precision

You are setting the time in milliseconds, but your input precision is in microseconds, so of course you are going to lose any precision finer than milliseconds.

Calendar doesn’t support finer granularity than milliseconds. There is no work-around.

Leave a Comment