- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 174 for daysIn (0.18 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/format_rfc3339.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 18 19:59:26 UTC 2023 - 5.7K bytes - Viewed (0) -
src/time/zoneinfo_windows.go
if i < 0 { i += 7 } day += i if week := int(d.Day) - 1; week < 4 { day += week * 7 } else { // "Last" instance of the day. day += 4 * 7 if day > daysIn(Month(d.Month), year) { day -= 7 } } return t.sec() + int64(day-1)*secondsPerDay + internalToUnix } func initLocalFromTZI(i *syscall.Timezoneinformation) { l := &localLoc
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 07:20:34 UTC 2023 - 6.6K 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) -
.github/workflows/stale-issues.yml
This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. close-issue-message: > This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further. days-before-pr-stale: 14 days-before-pr-close: 14
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 23 20:04:38 UTC 2023 - 4.1K bytes - Viewed (0) -
docs/bucket/lifecycle/README.md
Lifecycle configuration imported successfully to `play/testbucket`. ``` - List the current settings ``` $ mc ilm ls play/testbucket ID | Prefix | Enabled | Expiry | Date/Days | Transition | Date/Days | Storage-Class | Tags ------------|----------|------------|--------|--------------|--------------|------------------|------------------|------------------
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Aug 26 07:33:25 UTC 2023 - 9K bytes - Viewed (0)