Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for parseDate (3.35 sec)

  1. src/test/java/org/codelibs/fess/taglib/FessFunctionsTest.java

        }
    
        public void test_parseDate() {
            Date date;
    
            date = FessFunctions.parseDate("");
            assertNull(date);
    
            date = FessFunctions.parseDate("2004-04-01T12:34:56.123Z");
            assertEquals("2004-04-01T12:34:56.123Z", FessFunctions.formatDate(date));
    
            date = FessFunctions.parseDate("2004-04-01T12:34:56Z");
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/crawler/transformer/AbstractFessFileTransformer.java

                final Date lastModified = FessFunctions.parseDate(lastModifiedObj.toString());
                if (lastModified != null) {
                    return lastModified;
                }
            } else if ((lastModifiedObj instanceof final String[] lastModifieds) && (lastModifieds.length > 0)) {
                final Date lastModified = FessFunctions.parseDate(lastModifieds[0]);
                if (lastModified != null) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

            if (value == null) {
                return null;
            }
            return new Date(value);
        }
    
        public static Date parseDate(final String value) {
            return parseDate(value, Constants.DATE_OPTIONAL_TIME);
        }
    
        public static Date parseDate(final String value, final String format) {
            if (value == null) {
                return null;
            }
    
            try {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 16.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/util/DocumentUtil.java

            }
            if (clazz.isAssignableFrom(Date.class)) {
                if (value instanceof Date) {
                    return (T) value;
                }
                return (T) FessFunctions.parseDate(value.toString());
            }
            if (clazz.isAssignableFrom(Long.class)) {
                if (value instanceof Long) {
                    return (T) value;
                }
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 5K bytes
    - Viewed (0)
  5. src/main/webapp/WEB-INF/orig/view/searchResults.jsp

    							key="labels.search_result_more" /></a>
    				</div>
    				<div class="info">
    					<fmt:formatDate value="${fe:parseDate(doc.last_modified)}" type="BOTH" pattern="yyyy-MM-dd HH:mm" />
    					<c:if test="${doc.last_modified==null || doc.last_modified==''}">
    						<fmt:formatDate value="${fe:parseDate(doc.created)}" type="BOTH" pattern="yyyy-MM-dd HH:mm" />
    					</c:if>
    					<c:if test="${doc.content_length!=null && doc.content_length!=''}">
    Others
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Jun 09 04:29:42 GMT 2022
    - 9K bytes
    - Viewed (1)
  6. src/main/webapp/WEB-INF/view/searchResults.jsp

    							key="labels.search_result_more" /></a>
    				</div>
    				<div class="info">
    					<fmt:formatDate value="${fe:parseDate(doc.last_modified)}" type="BOTH" pattern="yyyy-MM-dd HH:mm" />
    					<c:if test="${doc.last_modified==null || doc.last_modified==''}">
    						<fmt:formatDate value="${fe:parseDate(doc.created)}" type="BOTH" pattern="yyyy-MM-dd HH:mm" />
    					</c:if>
    					<c:if test="${doc.content_length!=null && doc.content_length!=''}">
    Others
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Jun 09 04:29:42 GMT 2022
    - 9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/mylasta/direction/FessProp.java

                            .filter(s -> !validateDateTimeString(source.get(s))).collect(Collectors.toList()));
        }
    
        default boolean validateDateTimeString(final Object obj) {
            if (FessFunctions.parseDate(obj.toString()) != null) {
                return true;
            }
            return false;
        }
    
        String getIndexAdminIntegerFields();
    
        default Set<String> getIndexAdminIntegerFieldSet() {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 85K bytes
    - Viewed (0)
  8. internal/event/name.go

    	var s string
    	if err := json.Unmarshal(data, &s); err != nil {
    		return err
    	}
    
    	eventName, err := ParseName(s)
    	if err != nil {
    		return err
    	}
    
    	*name = eventName
    	return nil
    }
    
    // ParseName - parses string to Name.
    func ParseName(s string) (Name, error) {
    	switch s {
    	case "s3:BucketCreated:*":
    		return BucketCreated, nil
    	case "s3:BucketRemoved:*":
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/convert/ByteConversionUtil.java

            } else if (o instanceof String) {
                return toPrimitiveByte((String) o);
            } else if (o instanceof java.util.Date) {
                if (pattern != null) {
                    return Byte.parseByte(new SimpleDateFormat(pattern).format(o));
                }
                return (byte) ((java.util.Date) o).getTime();
            } else if (o instanceof Boolean) {
                return ((Boolean) o) ? (byte) 1 : (byte) 0;
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/UnsignedBytes.java

       *
       * @throws NumberFormatException if the string does not contain a valid unsigned {@code byte}
       *     value
       * @throws NullPointerException if {@code string} is null (in contrast to {@link
       *     Byte#parseByte(String)})
       * @since 13.0
       */
      @CanIgnoreReturnValue
      public static byte parseUnsignedByte(String string) {
        return parseUnsignedByte(string, 10);
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 18.3K bytes
    - Viewed (0)
Back to top