Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for timestamp (3.85 sec)

  1. src/test/java/org/codelibs/core/beans/converter/DateConverterTest.java

     */
    package org.codelibs.core.beans.converter;
    
    import static org.hamcrest.CoreMatchers.is;
    import static org.hamcrest.CoreMatchers.not;
    import static org.junit.Assert.assertThat;
    
    import java.sql.Timestamp;
    import java.util.Date;
    
    import org.junit.Test;
    
    /**
     * @author higa
     *
     */
    public class DateConverterTest {
    
        /**
         * @throws Exception
         */
        @Test
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/beans/converter/NumberConverterTest.java

     */
    package org.codelibs.core.beans.converter;
    
    import static org.hamcrest.CoreMatchers.is;
    import static org.hamcrest.CoreMatchers.not;
    import static org.junit.Assert.assertThat;
    
    import java.sql.Timestamp;
    
    import org.junit.Test;
    
    /**
     * @author higa
     */
    public class NumberConverterTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetAsObject() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/beans/converter/TimestampConverterTest.java

         */
        @Test
        public void testGetAsObjectAndGetAsString() throws Exception {
            final TimestampConverter converter = new TimestampConverter("yyyy/MM/dd HH:mm:ss");
            final java.sql.Timestamp result = (java.sql.Timestamp) converter.getAsObject("2008/12/31 12:34:56");
            System.out.println(result);
            assertThat(converter.getAsString(result), is("2008/12/31 12:34:56"));
        }
    
        /**
         * @throws Exception
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/beans/converter/TimestampConverter.java

        }
    
        @Override
        public boolean isTarget(final Class<?> clazz) {
            assertArgumentNotNull("clazz", clazz);
            return clazz == java.sql.Timestamp.class;
        }
    
    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/misc/DynamicProperties.java

            if (now - lastChecked < checkInterval) {
                lastChecked = now;
                return false;
            }
            lastChecked = now;
    
            final long timestamp = propertiesFile.lastModified();
            if (timestamp <= lastModified) {
                return false;
            }
    
            return true;
        }
    
        public synchronized void load() {
            final Properties prop = new Properties();
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9.6K bytes
    - Viewed (0)
Back to top