Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for daysIn (0.32 sec)

  1. src/time/time_test.go

    				time, t1)
    		}
    	}
    }
    
    var daysInTests = []struct {
    	year, month, di int
    }{
    	{2011, 1, 31},  // January, first month, 31 days
    	{2011, 2, 28},  // February, non-leap year, 28 days
    	{2012, 2, 29},  // February, leap year, 29 days
    	{2011, 6, 30},  // June, 30 days
    	{2011, 12, 31}, // December, last month, 31 days
    }
    
    func TestDaysIn(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  2. src/time/time.go

    }
    
    func daysIn(m Month, year int) int {
    	if m == February && isLeap(year) {
    		return 29
    	}
    	return int(daysBefore[m] - daysBefore[m-1])
    }
    
    // daysSinceEpoch takes a year and returns the number of days from
    // the absolute epoch to the start of that year.
    // This is basically (year - zeroYear) * 365, but accounting for leap days.
    func daysSinceEpoch(year int) uint64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  3. src/time/format.go

    		}
    		day = d
    	} else {
    		if month < 0 {
    			month = int(January)
    		}
    		if day < 0 {
    			day = 1
    		}
    	}
    
    	// Validate the day of the month.
    	if day < 1 || day > daysIn(Month(month), year) {
    		return Time{}, newParseError(alayout, avalue, "", value, ": day out of range")
    	}
    
    	if z != nil {
    		return Date(year, Month(month), day, hour, min, sec, nsec, z), nil
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:28 UTC 2024
    - 49.3K bytes
    - Viewed (0)
  4. internal/bucket/lifecycle/lifecycle_test.go

    			objectName:     "foxdir/fooobject",
    			objectModTime:  time.Now().UTC().Add(-10 * 24 * time.Hour), // Created 10 days ago
    			expectedAction: NoneAction,
    		},
    		// Should remove (test Days)
    		{
    			inputConfig:    `<LifecycleConfiguration><Rule><Filter><Prefix>foodir/</Prefix></Filter><Status>Enabled</Status><Expiration><Days>5</Days></Expiration></Rule></LifecycleConfiguration>`,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  5. src/crypto/tls/common.go

    	// with random data before the first server handshake.
    	//
    	// Deprecated: if this field is left at zero, session ticket keys will be
    	// automatically rotated every day and dropped after seven days. For
    	// customizing the rotation schedule or synchronizing servers that are
    	// terminating connections for the same host, use SetSessionTicketKeys.
    	SessionTicketKey [32]byte
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 59.1K bytes
    - Viewed (0)
  6. pkg/controller/cronjob/cronjob_controllerv2_test.go

    	}
    
    	if mediumDead/60/60 < 1 || mediumDead/60/60 >= 24 {
    		t.Errorf("mediumDead should be between one hour and one day")
    	}
    
    	if longDead/60/60/24 < 10 {
    		t.Errorf("longDead should be at least ten days")
    	}
    
    	testCases := map[string]struct {
    		// cj spec
    		concurrencyPolicy batchv1.ConcurrencyPolicy
    		suspend           bool
    		schedule          string
    		timeZone          *string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 70.8K bytes
    - Viewed (0)
  7. src/net/http/request.go

    	} else {
    		r.Header.Set("Cookie", s)
    	}
    }
    
    // Referer returns the referring URL, if sent in the request.
    //
    // Referer is misspelled as in the request itself, a mistake from the
    // earliest days of HTTP.  This value can also be fetched from the
    // [Header] map as Header["Referer"]; the benefit of making it available
    // as a method is that the compiler can diagnose programs that use the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/docs/userguide/api/kotlin_dsl.adoc

    From version 5.1 onwards, the log directory is cleaned up automatically.
    It is checked periodically (at most every 24 hours) and log files are deleted if they haven’t been used for 7 days.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 20:16:10 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/optimizing-performance/configuration_cache.adoc

    ----
    ❯ rm -rf .gradle/configuration-cache
    ----
    
    Configuration cache entries are checked periodically (at most every 24 hours) for whether they are still in use.
    They are deleted if they haven't been used for 7 days.
    
    [[config_cache:stable]]
    == Stable configuration cache
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 16:24:12 UTC 2024
    - 71.1K bytes
    - Viewed (0)
  10. src/crypto/tls/handshake_client_test.go

    	deleteTicket()
    	testResumeState("GetFreshSessionTicket", false)
    	for i := 0; i < 13; i++ {
    		d += 12 * time.Hour
    		testResumeState("OldSessionTicket", true)
    	}
    	// Expire it (now a little more than 7 days) and make sure a full
    	// handshake occurs for TLS 1.2. Resumption should still occur for
    	// TLS 1.3 since the client should be using a fresh ticket sent over
    	// by the server.
    	d += 12 * time.Hour
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
Back to top