Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 191 for Instant (0.97 sec)

  1. api/maven-api-core/src/test/java/org/apache/maven/api/MonotonicClockTest.java

        void testRapidCalls() {
            Instant[] instants = new Instant[1000];
            for (int i = 0; i < instants.length; i++) {
                instants[i] = MonotonicClock.now();
            }
    
            // Verify monotonic behavior across all measurements
            for (int i = 1; i < instants.length; i++) {
                assertTrue(
                        instants[i].compareTo(instants[i - 1]) >= 0,
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jan 15 06:28:29 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/MonotonicClock.java

            return CLOCK;
        }
    
        /**
         * Returns the current instant from the monotonic clock.
         * This is a convenience method equivalent to {@code get().instant()}.
         *
         * @return the current instant using monotonic timing
         */
        public static Instant now() {
            return get().instant();
        }
    
        /**
         * Returns the initialization time of this monotonic clock.
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jan 15 06:28:29 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/ProtoSession.java

         */
        @Nonnull
        Map<String, String> getEffectiveProperties();
    
        /**
         * Returns the start time of the session.
         *
         * @return the start time as an Instant object, never {@code null}
         */
        @Nonnull
        Instant getStartTime();
    
        /**
         * Gets the directory of the topmost project being built, usually the current directory or the
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Jul 03 14:18:26 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/opensearch/log/exbhv/UserInfoBhv.java

        @Override
        protected LocalDateTime toLocalDateTime(final Object value) {
            if (value != null) {
                try {
                    final Instant instant = Instant.from(DateTimeFormatter.ISO_INSTANT.parse(value.toString()));
                    return LocalDateTime.ofInstant(instant, ZoneId.systemDefault());
                } catch (final DateTimeParseException e) {
                    logger.debug("Invalid date format: {}", value, e);
                }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/opensearch/log/exbhv/FavoriteLogBhv.java

        @Override
        protected LocalDateTime toLocalDateTime(final Object value) {
            if (value != null) {
                try {
                    final Instant instant = Instant.from(DateTimeFormatter.ISO_INSTANT.parse(value.toString()));
                    return LocalDateTime.ofInstant(instant, ZoneId.systemDefault());
                } catch (final DateTimeParseException e) {
                    logger.debug("Invalid date format: {}", value, e);
                }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/HeadersJvmTest.kt

      }
    
      @Test fun setInstant() {
        val expected = Instant.ofEpochMilli(1000L)
        val headers =
          Headers
            .Builder()
            .add("Test-Instant", Instant.ofEpochMilli(0L))
            .set("Test-Instant", expected)
            .build()
        assertThat(headers["Test-Instant"]).isEqualTo("Thu, 01 Jan 1970 00:00:01 GMT")
        assertThat(headers.getInstant("Test-Instant")).isEqualTo(expected)
      }
    
      @Test fun addParsing() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:25 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/AuthenticationRateLimiter.java

            private volatile Instant lastAttempt = Instant.now();
            private volatile Instant windowStart = Instant.now();
            private volatile Instant blockExpiry = null;
            private final AtomicBoolean blocked = new AtomicBoolean(false);
    
            void recordAttempt() {
                Instant now = Instant.now();
    
                // Reset window if more than 1 minute has passed
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/opensearch/log/exbhv/ClickLogBhv.java

        @Override
        protected LocalDateTime toLocalDateTime(final Object value) {
            if (value != null) {
                try {
                    final Instant instant = Instant.from(DateTimeFormatter.ISO_INSTANT.parse(value.toString()));
                    return LocalDateTime.ofInstant(instant, ZoneId.systemDefault());
                } catch (final DateTimeParseException e) {
                    logger.debug("Invalid date format: {}", value, e);
                }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/opensearch/log/exbhv/SearchLogBhv.java

        @Override
        protected LocalDateTime toLocalDateTime(final Object value) {
            if (value != null) {
                try {
                    final Instant instant = Instant.from(DateTimeFormatter.ISO_INSTANT.parse(value.toString()));
                    return LocalDateTime.ofInstant(instant, ZoneId.systemDefault());
                } catch (final DateTimeParseException e) {
                    logger.debug("Invalid date format: {}", value, e);
                }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Headers.kt

        ) = add(name, value.toHttpDateString())
    
        /**
         * Add a header with the specified name and formatted instant. Does validation of header names
         * and value.
         */
        @IgnoreJRERequirement // Only programs that already have Instant will use this.
        fun add(
          name: String,
          value: Instant,
        ) = add(name, Date.from(value))
    
        /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:25 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top