question: public static TimeOfDay hourAndMinuteAndSecondFromDate ( Date dateTime , TimeZone tz ) { if ( dateTime == null ) return null ; Calendar cal = Calendar . getInstance ( ) ; cal . setTime ( dateTime ) ; if ( tz != null ) cal . setTimeZone ( tz ) ; return new TimeOfDay ( cal . get ( Calendar . HOUR_OF_DAY ) , cal . get ( Calendar . MINUTE ) , cal . get ( Calendar . SECOND ) ) ; }
target:  Create a TimeOfDay from the given date, in the given TimeZone.