Calendar object time have precision till millisecond. In your set epoch.set(2000,Calendar.JANUARY,1,0,0,0)
method, the milli second value won't be reset to 0.
You can separately set the same to zero as follows to get identical difference across multiple runs
epoch.set(Calendar.MILLISECOND, 0)