Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for addState (0.15 sec)

  1. src/go/printer/testdata/expressions.input

    	// respect source lines in multi-line expressions
    	if cc.negate && len(cc.ranges) == 2 &&
    		cc.ranges[0] == '\n' && cc.ranges[1] == '\n' {
    		nl := new(_NotNl)
    		p.re.add(nl)
    	}
    }
    
    
    func addState(s []state, inst instr, match []int) {
    	// handle comments correctly in multi-line expressions
    	for i := 0; i < l; i++ {
    		if s[i].inst.index() == index && // same instruction
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 16:41:54 UTC 2017
    - 12.1K bytes
    - Viewed (0)
  2. src/go/printer/testdata/expressions.golden

    	// respect source lines in multi-line expressions
    	if cc.negate && len(cc.ranges) == 2 &&
    		cc.ranges[0] == '\n' && cc.ranges[1] == '\n' {
    		nl := new(_NotNl)
    		p.re.add(nl)
    	}
    }
    
    func addState(s []state, inst instr, match []int) {
    	// handle comments correctly in multi-line expressions
    	for i := 0; i < l; i++ {
    		if s[i].inst.index() == index &&	// same instruction
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 16:41:54 UTC 2017
    - 12.4K bytes
    - Viewed (0)
  3. src/go/printer/testdata/expressions.raw

    	// respect source lines in multi-line expressions
    	if cc.negate && len(cc.ranges) == 2 &&
    		cc.ranges[0] == '\n' && cc.ranges[1] == '\n' {
    		nl := new(_NotNl)
    		p.re.add(nl)
    	}
    }
    
    func addState(s []state, inst instr, match []int) {
    	// handle comments correctly in multi-line expressions
    	for i := 0; i < l; i++ {
    		if s[i].inst.index() == index &&	// same instruction
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 16:41:54 UTC 2017
    - 12.4K bytes
    - Viewed (0)
  4. cmd/bucket-replication_test.go

    				VersionID:         "a3348c34-c352-4498-82f0-1098e8b34df9",
    				UserDefined:       map[string]string{xhttp.MinIOReplicationResetStatus: fmt.Sprintf("%s;%s", UTCNow().AddDate(0, 0, -1).Format(http.TimeFormat), "abc")},
    				ModTime:           UTCNow().AddDate(0, 0, -2),
    			},
    			expectedSync: true,
    			dsc:          ReplicateDecision{targetsMap: map[string]replicateTargetDecision{"arn1": newReplicateTargetDecision("arn1", true, false)}},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Sep 16 09:28:06 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  5. src/time/mono_test.go

    	no("tu.In(UTC)", tu.In(UTC))
    	no("tu.AddDate(1, 1, 1)", tu.AddDate(1, 1, 1))
    	no("tu.AddDate(0, 0, 0)", tu.AddDate(0, 0, 0))
    	no("tu.Local()", tu.Local())
    	no("tu.UTC()", tu.UTC())
    	no("tu.Round(2)", tu.Round(2))
    	no("tu.Truncate(2)", tu.Truncate(2))
    
    	yes("tm.Add(1)", tm.Add(1))
    	no("tm.AddDate(1, 1, 1)", tm.AddDate(1, 1, 1))
    	no("tm.AddDate(0, 0, 0)", tm.AddDate(0, 0, 0))
    	no("tm.In(UTC)", tm.In(UTC))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 19 17:10:49 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  6. src/time/example_test.go

    	oneDayLaterZurich := startZurich.AddDate(0, 0, 1)
    	dayDurationZurich := oneDayLaterZurich.Sub(startZurich)
    
    	fmt.Printf("oneDayLater: start.AddDate(0, 0, 1) = %v\n", oneDayLater)
    	fmt.Printf("oneMonthLater: start.AddDate(0, 1, 0) = %v\n", oneMonthLater)
    	fmt.Printf("oneYearLater: start.AddDate(1, 0, 0) = %v\n", oneYearLater)
    	fmt.Printf("oneDayLaterZurich: startZurich.AddDate(0, 0, 1) = %v\n", oneDayLaterZurich)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 01:05:00 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  7. internal/s3select/sql/timestampfuncs.go

    	var duration time.Duration
    	switch timePart {
    	case timePartYear:
    		return FromTimestamp(t.AddDate(int(qty), 0, 0)), nil
    	case timePartMonth:
    		return FromTimestamp(t.AddDate(0, int(qty), 0)), nil
    	case timePartDay:
    		return FromTimestamp(t.AddDate(0, 0, int(qty))), nil
    	case timePartHour:
    		duration = time.Duration(qty) * time.Hour
    	case timePartMinute:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  8. cmd/postpolicyform_test.go

    		formValues.Set("X-Amz-Algorithm", tt.XAmzAlgorithm)
    		formValues.Set("X-Amz-Credential", tt.XAmzCredential)
    		if tt.Expired {
    			// Expired already.
    			pp.SetExpires(UTCNow().AddDate(0, 0, -10))
    		} else {
    			// Expires in 10 days.
    			pp.SetExpires(UTCNow().AddDate(0, 0, 10))
    		}
    
    		formValues.Set("Policy", base64.StdEncoding.EncodeToString([]byte(pp.String())))
    		formValues.Set("Success_action_status", tt.SuccessActionStatus)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 8.9K bytes
    - Viewed (0)
  9. cmd/tier-last-day-stats.go

    	"time"
    
    	"github.com/minio/madmin-go/v3"
    )
    
    //go:generate msgp -file=$GOFILE -unexported
    
    type lastDayTierStats struct {
    	Bins      [24]tierStats
    	UpdatedAt time.Time
    }
    
    func (l *lastDayTierStats) addStats(ts tierStats) {
    	now := time.Now()
    	l.forwardTo(now)
    
    	nowIdx := now.Hour()
    	l.Bins[nowIdx] = l.Bins[nowIdx].add(ts)
    }
    
    // forwardTo moves time to t, clearing entries between last update and t.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. src/time/genzabbrs.go

    // for location l.
    func getAbbrs(l *time.Location) (st, dt string) {
    	t := time.Date(time.Now().Year(), 0, 1, 0, 0, 0, 0, l)
    	abbr1, off1 := t.Zone()
    	for i := 0; i < 12; i++ {
    		t = t.AddDate(0, 1, 0)
    		abbr2, off2 := t.Zone()
    		if abbr1 != abbr2 {
    			if off2-off1 < 0 { // southern hemisphere
    				abbr1, abbr2 = abbr2, abbr1
    			}
    			return abbr1, abbr2
    		}
    	}
    	return abbr1, abbr1
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top