Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 724 for getTime (0.1 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
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 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:
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 11K bytes
    - Viewed (0)
  3. 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
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9.5K 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"));
        }
    
        /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  5. 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 );
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 10.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/convert/LongConversionUtil.java

            } 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 {
                return toLong(o.toString());
            }
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. compat/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java

                for (MavenProject project : projects) {
                    int len = lineLength
                            - project.getName().length()
                            - project.getPackaging().length()
                            - 2;
                    logger.info("{}{}[{}]", project.getName(), chars(' ', (len > 0) ? len : 1), project.getPackaging());
                }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  8. 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...
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jan 01 05:12:47 UTC 2018
    - 1.6K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/AbstractModelInterpolatorTest.java

            cal.set(Calendar.DATE, 11);
    
            Date firstTestDate = cal.getTime();
    
            cal.set(Calendar.HOUR, 11);
            cal.set(Calendar.AM_PM, Calendar.PM);
    
            // just to make sure all the bases are covered...
            cal.set(Calendar.HOUR_OF_DAY, 23);
    
            Date secondTestDate = cal.getTime();
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/convert/DateConversionUtil.java

                final Date date = toDate(str, format);
                if (date != null) {
                    return new java.sql.Date(date.getTime());
                }
            }
            final Date date = toDate(str, locale);
            if (date != null) {
                return new java.sql.Date(date.getTime());
            }
            final java.sql.Date sqlDate = toSqlDateJdbcEscape(str);
            if (sqlDate != null) {
                return sqlDate;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 21.5K bytes
    - Viewed (0)
Back to top