question: private static long parseLockTimeStr ( String lockTimeStr ) throws ParseException { if ( lockTimeStr . indexOf ( "/" ) != - 1 ) { SimpleDateFormat format = new SimpleDateFormat ( "yyyy/MM/dd" , Locale . US ) ; Date date = format . parse ( lockTimeStr ) ; return date . getTime ( ) / 1000 ; } return Long . parseLong ( lockTimeStr ) ; }
target:  Parses the string either as a whole number of blocks, or if it contains slashes as a YYYY/MM/DD format date and returns the lock time in wire format.