question: public static String formatTime ( long time ) { SimpleDateFormat sdf = new SimpleDateFormat ( "h:mm a" ) ; Calendar c = Calendar . getInstance ( ) ; c . setTimeInMillis ( time * 1000 ) ; return sdf . format ( c . getTime ( ) ) ; }
target:  Helper method to format the Sunsrise and Sunset time returned by the OpenWeatherMap call.