Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for formatName (0.7 sec)

  1. schema/naming.go

    	return ns.formatName("fk", rel.Schema.Table, ns.toDBName(rel.Name))
    }
    
    // CheckerName generate checker name
    func (ns NamingStrategy) CheckerName(table, column string) string {
    	return ns.formatName("chk", table, column)
    }
    
    // IndexName generate index name
    func (ns NamingStrategy) IndexName(table, column string) string {
    	return ns.formatName("idx", table, ns.toDBName(column))
    }
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Oct 30 09:15:49 GMT 2023
    - 5.2K bytes
    - Viewed (0)
  2. schema/naming_test.go

    		t.Errorf("invalid column name generated, got %v", columdName)
    	}
    }
    
    func TestFormatNameWithStringLongerThan63Characters(t *testing.T) {
    	ns := NamingStrategy{IdentifierMaxLength: 63}
    
    	formattedName := ns.formatName("prefix", "table", "thisIsAVeryVeryVeryVeryVeryVeryVeryVeryVeryLongString")
    	if formattedName != "prefix_table_thisIsAVeryVeryVeryVeryVeryVeryVeryVeryVer180f2c67" {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue May 30 02:00:48 GMT 2023
    - 7K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CacheTest.kt

          MockResponse.Builder()
            .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS))
            .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS))
            .body("ABC")
            .build(),
        )
        server.enqueue(
          MockResponse.Builder()
            .addHeader("Last-Modified: " + formatDate(-5, TimeUnit.MINUTES))
            .addHeader("Expires: " + formatDate(2, TimeUnit.HOURS))
            .body("DEF")
            .build(),
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CacheCorruptionTest.kt

              headersOf(
                "Last-Modified",
                formatDate(-1, TimeUnit.HOURS)!!,
                "Expires",
                formatDate(1, TimeUnit.HOURS)!!,
              ),
            body = "ABC.1",
          ),
        )
        server.enqueue(
          MockResponse(
            headers =
              headersOf(
                "Last-Modified",
                formatDate(-1, TimeUnit.HOURS)!!,
                "Expires",
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 6K bytes
    - Viewed (1)
  5. src/test/java/org/codelibs/fess/taglib/FessFunctionsTest.java

            assertEquals("2004-04-01T12:34:56.123Z", FessFunctions.formatDate(date));
    
            date = FessFunctions.parseDate("2004-04-01T12:34:56Z");
            assertEquals("2004-04-01T12:34:56.000Z", FessFunctions.formatDate(date));
    
            date = FessFunctions.parseDate("2004-04-01T12:34Z");
            assertEquals("2004-04-01T12:34:00.000Z", FessFunctions.formatDate(date));
    
            date = FessFunctions.parseDate("2004-04-01");
    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)
  6. src/main/java/org/codelibs/fess/app/service/SearchLogService.java

                    final Map<String, String> params = new LinkedHashMap<>();
                    params.put("User Info ID", e.getId());
                    params.put("Created Time", FessFunctions.formatDate(e.getCreatedAt()));
                    params.put("Updated Time", FessFunctions.formatDate(e.getUpdatedAt()));
                    return params;
                }).get();
            }
            if (SearchLogPager.LOG_TYPE_CLICK.equalsIgnoreCase(logType)) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 28.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/service/AccessTokenService.java

                        throw new InvalidAccessTokenException("invalid_token",
                                "The token is expired(" + FessFunctions.formatDate(FessFunctions.date(expiredTime)) + ").");
                    }
                    stream(accessToken.getPermissions()).of(stream -> stream.forEach(permissionSet::add));
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/concurrent/TaskLoggerTest.kt

     */
    package okhttp3.internal.concurrent
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import org.junit.jupiter.api.Test
    
    class TaskLoggerTest {
      @Suppress("ktlint")
      @Test fun formatTime() {
        assertThat(formatDuration(-3_499_999_999L)).isEqualTo(" -3 s ")
        assertThat(formatDuration(-3_000_000_000L)).isEqualTo(" -3 s ")
        assertThat(formatDuration(-2_500_000_000L)).isEqualTo(" -3 s ")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  9. src/archive/tar/format.go

    func (f *Format) mustNotBe(f2 Format) { *f &^= f2 }
    
    var formatNames = map[Format]string{
    	formatV7: "V7", FormatUSTAR: "USTAR", FormatPAX: "PAX", FormatGNU: "GNU", formatSTAR: "STAR",
    }
    
    func (f Format) String() string {
    	var ss []string
    	for f2 := Format(1); f2 < formatMax; f2 <<= 1 {
    		if f.has(f2) {
    			ss = append(ss, formatNames[f2])
    		}
    	}
    	switch len(ss) {
    	case 0:
    		return "<unknown>"
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

            }
        }
    
        public static String formatDate(final Date date) {
            if (date == null) {
                return StringUtil.EMPTY;
            }
            final SimpleDateFormat sdf = new SimpleDateFormat(Constants.ISO_DATETIME_FORMAT);
            sdf.setTimeZone(Constants.TIMEZONE_UTC);
            return sdf.format(date);
        }
    
        public static String formatDate(final LocalDateTime date) {
            if (date == null) {
    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)
Back to top