public JKTimeObject toTimeObject ( Date date , Date time ) { JKTimeObject fsTimeObject = new JKTimeObject ( ) ; Calendar timeInstance = Calendar . getInstance ( ) ; timeInstance . setTimeInMillis ( time . getTime ( ) ) ; fsTimeObject . setHour ( timeInstance . get ( Calendar . HOUR_OF_DAY ) ) ; fsTimeObject . setMunite ( timeInstance . get ( Calendar . MINUTE ) ) ; Calendar dateInstance = Calendar . getInstance ( ) ; dateInstance . setTime ( date ) ; fsTimeObject . setYear ( dateInstance . get ( Calendar . YEAR ) ) ; fsTimeObject . setMonth ( dateInstance . get ( Calendar . MONTH ) ) ; fsTimeObject . setDay ( dateInstance . get ( Calendar . DAY_OF_MONTH ) ) ; return fsTimeObject ; }
To time object .