Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 97 for Format (0.14 sec)

  1. src/test/java/org/codelibs/core/convert/TimestampConversionUtilTest.java

            assertThat(new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").format(date), is("2010/09/07 11:49:00"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToDate_MediumStyle() throws Exception {
            final Date date = toDate("2010/9/7 11:49:10", Locale.JAPAN);
            assertThat(new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").format(date), is("2010/09/07 11:49:10"));
        }
    
        /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/convert/TimestampConversionUtil.java

        protected static Date toDate(final String str, final Locale locale) {
            for (final DateFormat format : MultiIterator.iterable(new DateFormatIterator(locale), new PlainDateFormatIterator(str, locale))) {
                if (format == null) {
                    continue;
                }
                final Date date = toDate(str, format);
                if (date != null) {
                    return date;
                }
            }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/convert/LongConversionUtil.java

                return toLong((String) o);
            } else if (o instanceof java.util.Date) {
                if (pattern != null) {
                    return Long.valueOf(new SimpleDateFormat(pattern).format(o));
                }
                return ((java.util.Date) o).getTime();
            } else if (o instanceof Boolean) {
                return ((Boolean) o) ? (long) 1 : (long) 0;
            } else {
    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)
  4. src/main/java/org/codelibs/core/beans/converter/NumberConverter.java

            }
    
        }
    
        @Override
        public String getAsString(final Object value) {
            if (value == null) {
                return null;
            }
            return new DecimalFormat(pattern).format(value);
        }
    
        @Override
        public boolean isTarget(final Class<?> clazz) {
            assertArgumentNotNull("clazz", clazz);
            return Number.class.isAssignableFrom(clazz);
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/convert/BigDecimalConversionUtil.java

                return (BigDecimal) o;
            } else if (o instanceof java.util.Date) {
                if (pattern != null) {
                    return new BigDecimal(new SimpleDateFormat(pattern).format(o));
                }
                return new BigDecimal(Long.toString(((java.util.Date) o).getTime()));
            } else if (o instanceof String) {
                final String s = (String) o;
                if (StringUtil.isEmpty(s)) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/SessionTest.java

                testCredentialUrl(
                    String.format("smb://%s:%s@%s/%s/doesnotexist", getTestUser(), getTestUserPassword(), getTestServer(), getTestShare()),
                    getTestUser(),
                    getTestUserPassword(),
                    null);
    
                if ( getTestUserDomain() != null ) {
                    testCredentialUrl(
                        String.format(
                            "smb://%s;%s:%s@%s/%s/doesnotexist",
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 15.8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/es/config/exentity/DataConfig.java

            }
            try {
                return Integer.parseInt(value);
            } catch (final NumberFormatException e) {
                if (logger.isDebugEnabled()) {
                    logger.debug("Invalid format: {}", value, e);
                }
            }
            return null;
        }
    
        @Override
        public String toString() {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/ldap/LdapManager.java

            }
    
            // LDAP: cn=%s
            // AD: (&(objectClass=user)(sAMAccountName=%s))
            final String filter = String.format(accountFilter, ldapUser.getName());
            if (logger.isDebugEnabled()) {
                logger.debug("Account Filter: {}", filter);
            }
            final Set<String> subRoleSet = new HashSet<>();
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 65.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/CoreLibConstants.java

        public static final String DATE_FORMAT_ISO_8601_BASIC = "yyyyMMdd'T'HHmmss.SSSZ";
    
        public static final String DATE_FORMAT_ISO_8601_EXTEND = "yyyy-MM-dd'T'HH:mm:ss.SSSZ";
    
        public static final String DATE_FORMAT_ISO_8601_EXTEND_UTC = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'";
    
        public static final String DATE_FORMAT_DIGIT_ONLY = "yyyyMMddHHmmss";
    
        protected CoreLibConstants() {
        }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/log/LoggerTest.java

         */
        @Test
        public void testLogWithException() throws Exception {
            logger.log(format("ILOGTEST0001"), new Exception());
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testLogWithArgsAndException() throws Exception {
            logger.log(format("ILOGTEST0002", "1", "2"), new Exception());
        }
    
        /**
         * @throws Exception
         */
        @Test
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.8K bytes
    - Viewed (0)
Back to top