code: public static Date parseBasicTime(String value) throws ParseException
     {
        Date result = null;
  
        if (value.length() > 0)
        {
           if (!value.equals("0"))
           {
              value = "000000" + value;
              value = value.substring(value.length() - 6);
              result = TIME_FORMAT.get().parse(value);
           }
        }
  
        return result;
     }
docs: Parse a time value.
  
  @param value time as String
  @return time as Date