Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for hours (0.16 sec)

  1. cmd/update-notifier_test.go

    		{1 * time.Hour, "my_download_url", "1 hour before the latest release"},
    		{61 * time.Minute, "my_download_url", "1 hour before the latest release"},
    		{122 * time.Minute, "my_download_url", "2 hours before the latest release"},
    		{24 * time.Hour, "my_download_url", "1 day before the latest release"},
    		{25 * time.Hour, "my_download_url", "1 day before the latest release"},
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jul 31 15:36:19 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  2. internal/s3select/sql/timestampfuncs.go

    		m1 += time.Month(12 * y1)
    		m2 += time.Month(12 * y2)
    
    		return FromInt(int64(m2 - m1)), nil
    	case timePartDay:
    		return FromInt(int64(duration / (24 * time.Hour))), nil
    	case timePartHour:
    		hours := duration / time.Hour
    		return FromInt(int64(hours)), nil
    	case timePartMinute:
    		minutes := duration / time.Minute
    		return FromInt(int64(minutes)), nil
    	case timePartSecond:
    		seconds := duration / time.Second
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 4.8K bytes
    - Viewed (0)
  3. cmd/handler-api.go

    	defer t.mu.RUnlock()
    
    	if t.staleUploadsCleanupInterval == 0 {
    		return 6 * time.Hour // default 6 hours
    	}
    
    	return t.staleUploadsCleanupInterval
    }
    
    func (t *apiConfig) getStaleUploadsExpiry() time.Duration {
    	t.mu.RLock()
    	defer t.mu.RUnlock()
    
    	if t.staleUploadsExpiry == 0 {
    		return 24 * time.Hour // default 24 hours
    	}
    
    	return t.staleUploadsExpiry
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 08 09:22:27 GMT 2024
    - 10K bytes
    - Viewed (0)
  4. cmd/tier-last-day-stats.go

    	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.
    func (l *lastDayTierStats) forwardTo(t time.Time) {
    	if t.IsZero() {
    		t = time.Now()
    	}
    
    	since := t.Sub(l.UpdatedAt).Hours()
    	// within the hour since l.UpdatedAt
    	if since < 1 {
    		return
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 19 22:54:46 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  5. cmd/bucket-object-lock.go

    	}
    
    	// Pass in relative days from current time, to additionally
    	// to verify "object-lock-remaining-retention-days" policy if any.
    	days := int(math.Ceil(math.Abs(objRetention.RetainUntilDate.Sub(t).Hours()) / 24))
    
    	ret := objectlock.GetObjectRetentionMeta(oi.UserDefined)
    	if ret.Mode.Valid() {
    		// Retention has expired you may change whatever you like.
    		if ret.RetainUntilDate.Before(t) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-v2_test.go

    		},
    		// The following versions are on-disk.
    		{ // restored object version expiring 10 hours from now.
    			versionID:        mustGetUUID(),
    			dataDir:          d2,
    			shares:           2,
    			transitionStatus: lifecycle.TransitionComplete,
    			restoreObjStatus: completedRestoreObj(time.Now().Add(10 * time.Hour)).String(),
    			expireRestored:   true,
    		},
    		{
    			versionID: mustGetUUID(),
    			dataDir:   d2,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 08 17:50:48 GMT 2024
    - 36.4K bytes
    - Viewed (0)
  7. internal/bucket/lifecycle/lifecycle_test.go

    			objectName:     "foodir/fooobject",
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 06:41:22 GMT 2024
    - 45.6K bytes
    - Viewed (0)
  8. cmd/common-main.go

    	if value := env.Get(config.EnvBrowserLoginAnimation, "on"); value != "" {
    		os.Setenv("CONSOLE_ANIMATED_LOGIN", value)
    	}
    
    	// Pass on the session duration environment variable, else we will default to 12 hours
    	if valueSts := env.Get(config.EnvMinioStsDuration, ""); valueSts != "" {
    		os.Setenv("CONSOLE_STS_DURATION", valueSts)
    	} else if valueSession := env.Get(config.EnvBrowserSessionDuration, ""); valueSession != "" {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 35.5K bytes
    - Viewed (2)
  9. internal/s3select/sql/parser.go

    }
    
    // ExtractFunc represents EXTRACT sql function
    type ExtractFunc struct {
    	Timeword string       `parser:" \"EXTRACT\" \"(\" @( \"YEAR\":Timeword | \"MONTH\":Timeword | \"DAY\":Timeword | \"HOUR\":Timeword | \"MINUTE\":Timeword | \"SECOND\":Timeword | \"TIMEZONE_HOUR\":Timeword | \"TIMEZONE_MINUTE\":Timeword ) "`
    	From     *PrimaryTerm `parser:" \"FROM\" @@ \")\" "`
    }
    
    // TrimFunc represents TRIM sql function
    type TrimFunc struct {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  10. tests/non_std_test.go

    		t.Errorf("UpdatedAt should be updated")
    	}
    
    	var animals []Animal
    	DB.Find(&animals)
    	if count := DB.Model(Animal{}).Where("1=1").Update("CreatedAt", time.Now().Add(2*time.Hour)).RowsAffected; count != int64(len(animals)) {
    		t.Error("RowsAffected should be correct when do batch update")
    	}
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 1.9K bytes
    - Viewed (0)
Back to top