question: static public Timestamp addMonths ( Timestamp day , int offset ) { if ( day == null ) day = new Timestamp ( System . currentTimeMillis ( ) ) ; GregorianCalendar cal = new GregorianCalendar ( ) ; cal . setTime ( day ) ; cal . set ( Calendar . HOUR_OF_DAY , 0 ) ; cal . set ( Calendar . MINUTE , 0 ) ; cal . set ( Calendar . SECOND , 0 ) ; cal . set ( Calendar . MILLISECOND , 0 ) ; if ( offset == 0 ) return new Timestamp ( cal . getTimeInMillis ( ) ) ; cal . add ( Calendar . MONTH , offset ) ; return new Timestamp ( cal . getTimeInMillis ( ) ) ; }
target:  [ ARHIPAC ] Return Day + offset (truncates)