private String getTimeString ( Date value ) { Calendar cal = DateHelper . popCalendar ( value ) ; int hours = cal . get ( Calendar . HOUR_OF_DAY ) ; int minutes = cal . get ( Calendar . MINUTE ) ; DateHelper . pushCalendar ( cal ) ; StringBuilder sb = new StringBuilder ( 4 ) ; sb . append ( m_twoDigitFormat . format ( hours ) ) ; sb . append ( m_twoDigitFormat . format ( minutes ) ) ; return ( sb . toString ( ) ) ; }
Convert a Java date into a Planner time .