- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 114 for daysIn (0.19 sec)
-
src/time/internal_test.go
func disablePlatformSources() (undo func()) { platformZoneSources = nil return func() { platformZoneSources = origPlatformZoneSources } } var Interrupt = interrupt var DaysIn = daysIn func empty(arg any, seq uintptr, delta int64) {} // Test that a runtimeTimer with a period that would overflow when on // expiration does not throw or cause other timers to hang. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:37 UTC 2024 - 2.2K bytes - Viewed (0) -
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) -
src/time/zoneinfo.go
} // Now dow is the day-of-week of the first day of r.mon. // Get the day-of-month of the first "dow" day. d := r.day - dow if d < 0 { d += 7 } for i := 1; i < r.week; i++ { if d+7 >= daysIn(Month(r.mon), year) { break } d += 7 } d += int(daysBefore[r.mon-1]) if isLeap(year) && r.mon > 2 { d++ } s = d * secondsPerDay } return s + r.time - off
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:30 UTC 2024 - 18.2K bytes - Viewed (0) -
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) -
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) -
internal/bucket/lifecycle/expiration_test.go
inputXML: `<Expiration> <Days>3</Days> <Date>2019-04-20T00:00:00Z</Date> </Expiration>`, expectedErr: errLifecycleInvalidExpiration, }, { // Expiration with both ExpiredObjectDeleteMarker and days inputXML: `<Expiration> <Days>3</Days>
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Feb 21 20:28:34 UTC 2024 - 4.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/job/PurgeLogJob.java
resultBuf.append(e.getMessage()).append("\n"); } // purge search logs try { final int days = ComponentUtil.getFessConfig().getPurgeSearchLogDay(); if (days >= 0) { searchLogService.deleteBefore(days); } else { resultBuf.append("Skipped to purge search logs.\n"); } } catch (final Exception e) {
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 3.7K bytes - Viewed (0) -
.github/workflows/team-triage-stale.yml
days-before-issue-stale: 14 stale-issue-label: to-triage stale-issue-message: "" days-before-issue-close: -1 only-pr-labels: 'from:contributor' exempt-all-pr-milestones: true days-before-pr-stale: 14 stale-pr-label: to-triage stale-pr-message: ""
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 02 09:13:16 UTC 2024 - 835 bytes - Viewed (0) -
docs/bucket/replication/setup_ilm_expiry_replication.sh
./mc ilm edit --id "${id}" --expire-days "100" sitea/bucket sleep 30s count1=$(./mc ilm rule list sitea/bucket --json | jq '.config.Rules[0].Expiration.Days') count2=$(./mc ilm rule list siteb/bucket --json | jq '.config.Rules[0].Expiration.Days') if [ $count1 -ne 100 ]; then echo "BUG: Expiration days not changed on 'sitea'" exit 1 fi
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat May 18 18:19:01 UTC 2024 - 12.8K bytes - Viewed (0) -
internal/bucket/lifecycle/expiration.go
errLifecycleInvalidDays = Errorf("Days must be positive integer when used with Expiration") errLifecycleInvalidExpiration = Errorf("Exactly one of Days (positive integer) or Date (positive ISO 8601 format) should be present inside Expiration.") errLifecycleInvalidDeleteMarker = Errorf("Delete marker cannot be specified with Days or Date in a Lifecycle Expiration Policy")
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Feb 21 20:28:34 UTC 2024 - 6.6K bytes - Viewed (0)