Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 777 for getTime (0.21 sec)

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

            assertThat(new SimpleDateFormat("yyyy/MM/dd").format(calendar.getTime()), is("2010/09/07"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToCalendar_MediumStyle() throws Exception {
            final Calendar calendar = toCalendar("2010/9/7");
            assertThat(new SimpleDateFormat("yyyy/MM/dd").format(calendar.getTime()), is("2010/09/07"));
        }
    
        /**
         * @throws Exception
    Java
    - Registered: Fri Apr 12 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/Encdec.java

            switch ( enc ) {
            case TIME_1970_SEC_32BE:
                return enc_uint32be((int) ( date.getTime() / 1000L ), dst, di);
            case TIME_1970_SEC_32LE:
                return enc_uint32le((int) ( date.getTime() / 1000L ), dst, di);
            case TIME_1904_SEC_32BE:
                return enc_uint32be((int) ( ( date.getTime() / 1000L + SEC_BETWEEEN_1904_AND_1970 ) & 0xFFFFFFFF ), dst, di);
            case TIME_1904_SEC_32LE:
    Java
    - Registered: Sun Apr 14 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 11K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/convert/ByteConversionUtil.java

            } else if (o instanceof java.util.Date) {
                if (pattern != null) {
                    return Byte.valueOf(new SimpleDateFormat(pattern).format(o));
                }
                return (byte) ((java.util.Date) o).getTime();
            } else if (o instanceof Boolean) {
                return ((Boolean) o) ? (byte) 1 : (byte) 0;
            } else {
                return toByte(o.toString());
            }
        }
    
    Java
    - Registered: Fri Apr 12 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/convert/TimestampConversionUtilTest.java

        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToCalendar_MediumStyle() throws Exception {
            final Calendar calendar = toCalendar("2010/9/7 11:49:10", Locale.JAPAN);
            assertThat(new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").format(calendar.getTime()), is("2010/09/07 11:49:10"));
        }
    
        /**
    Java
    - Registered: Fri Apr 12 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/convert/TimeConversionUtilTest.java

            assertThat(new SimpleDateFormat("HH:mm:ss").format(calendar.getTime()), is("11:49:00"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToCalendar_MediumStyle() throws Exception {
            final Calendar calendar = toCalendar("11:49:10");
            assertThat(new SimpleDateFormat("HH:mm:ss").format(calendar.getTime()), is("11:49:10"));
        }
    
        /**
         * @throws Exception
    Java
    - Registered: Fri Apr 12 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/util/Encdec.java

            switch( enc ) {
                case TIME_1970_SEC_32BE:
                    return enc_uint32be( (int)(date.getTime() / 1000L), dst, di );
                case TIME_1970_SEC_32LE:
                    return enc_uint32le( (int)(date.getTime() / 1000L), dst, di );
                case TIME_1904_SEC_32BE:
                    return enc_uint32be( (int)((date.getTime() / 1000L +
                        SEC_BETWEEEN_1904_AND_1970) & 0xFFFFFFFF), dst, di );
    Java
    - Registered: Sun Apr 14 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 10.9K bytes
    - Viewed (0)
  7. src/main/webapp/js/admin/plugins/form-validator/date.js

    ire("jquery")):b(a.jQuery)}(this,function(a){!function(a){function b(a,b,d){var e=new Date(a,b,d),f=new Date,g=f.getFullYear()-e.getFullYear();e.setFullYear(e.getFullYear()+g),e>f&&(g--,e.setFullYear(e.getFullYear()-1));var h=Math.floor((f.getTime()-e.getTime())/864e5),i=g+h/(c(f.getFullYear())?366:365),j=((i+"").split(".")[1]||"").substr(0,3);return i>=0?Math.floor(i)+(j>=915?1:0):(j*=10,Math.floor(i)+(j<=840?1:0))}function c(a){var b=new Date(a,1,28);return b.setDate(b.getDate()+1),1===b.getMo...
    JavaScript
    - Registered: Mon Apr 15 08:04:17 GMT 2024
    - Last Modified: Mon Jan 01 05:12:47 GMT 2018
    - 1.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/crawler/FessCrawlerThread.java

                    }
                    if (responseData.getLastModified() == null) {
                        return true;
                    }
                    if (responseData.getLastModified().getTime() <= lastModified.getTime() && httpStatusCode == 200) {
    
                        log(logHelper, LogType.NOT_MODIFIED, crawlerContext, urlQueue);
    
    Java
    - Registered: Mon Apr 15 08:04:17 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/convert/FloatConversionUtil.java

            } else if (o instanceof java.util.Date) {
                if (pattern != null) {
                    return new Float(new SimpleDateFormat(pattern).format(o));
                }
                return new Float(((java.util.Date) o).getTime());
            } else {
                return toFloat(o.toString());
            }
        }
    
        private static Float toFloat(final String s) {
            if (StringUtil.isEmpty(s)) {
                return null;
            }
    Java
    - Registered: Fri Apr 12 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/convert/IntegerConversionUtil.java

            } else if (o instanceof java.util.Date) {
                if (pattern != null) {
                    return Integer.valueOf(new SimpleDateFormat(pattern).format(o));
                }
                return (int) ((java.util.Date) o).getTime();
            } else if (o instanceof Boolean) {
                return ((Boolean) o) ? 1 : 0;
            } else {
                return toInteger(o.toString());
            }
        }
    
    Java
    - Registered: Fri Apr 12 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.7K bytes
    - Viewed (0)
Back to top