public void plusNanoSeconds ( long delta ) { if ( delta != 0 ) { long result = getNanoSecond ( ) + delta ; setNanoSecond ( ( int ) Math . floorMod ( result , 1000000000 ) ) ; plusSeconds ( Math . floorDiv ( result , 1000000000 ) ) ; } }
Adds delta nanoseconds . Delta can be negative . Month year day hour minute seconds and nanoSecond fields are affected .