question: protected Date compute ( double value , String localeString ) { if ( Double . isNaN ( value ) || localeString == null ) { return null ; } Locale locale = new Locale ( localeString ) ; long dateLong = ( long ) value ; Date date = new Date ( dateLong ) ; Calendar cal = Calendar . getInstance ( locale ) ; cal . setTime ( date ) ; return cal . getTime ( ) ; }
target:  Computes the result for a double input value and a locale string.