public static Timestamp plus ( Timestamp self , int days ) { Calendar calendar = Calendar . getInstance ( ) ; calendar . setTime ( self ) ; calendar . add ( Calendar . DATE , days ) ; Timestamp ts = new Timestamp ( calendar . getTime ( ) . getTime ( ) ) ; ts . setNanos ( self . getNanos ( ) ) ; return ts ; }
Add number of days to this Timestamp and returns the new Timestamp object .