Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 940 for Cstime (0.11 sec)

  1. internal/bucket/object/lock/lock.go

    // but only used when we do not wish to rely on system
    // time.
    func UTCNowNTP() (time.Time, error) {
    	// ntp server is disabled
    	if ntpServer == "" {
    		return time.Now().UTC(), nil
    	}
    	return ntp.Time(ntpServer)
    }
    
    // Retention - bucket level retention configuration.
    type Retention struct {
    	Mode        RetMode
    	Validity    time.Duration
    	LockEnabled bool
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jun 29 01:20:27 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  2. cmd/signature-v4.go

    func getScope(t time.Time, region string) string {
    	scope := strings.Join([]string{
    		t.Format(yyyymmdd),
    		region,
    		string(serviceS3),
    		"aws4_request",
    	}, SlashSeparator)
    	return scope
    }
    
    // getStringToSign a string based on selected query values.
    func getStringToSign(canonicalRequest string, t time.Time, scope string) string {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  3. cmd/ftp-server-driver.go

    	return m.info.Size
    }
    
    func (m *minioFileInfo) Mode() os.FileMode {
    	if m.isDir {
    		return os.ModeDir
    	}
    	return os.ModePerm
    }
    
    var minFileDate = time.Date(1980, 1, 1, 0, 0, 0, 0, time.UTC) // Workaround for Filezilla
    
    func (m *minioFileInfo) ModTime() time.Time {
    	if !m.info.LastModified.IsZero() {
    		return m.info.LastModified
    	}
    	return minFileDate
    }
    
    func (m *minioFileInfo) IsDir() bool {
    	return m.isDir
    }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 14K bytes
    - Viewed (0)
  4. src/main/resources/fess_env_crawler.properties

    # special script :: absolute mode: $(2014/07/10), relative mode: addDay(3).addMonth(4)
    # The milliseconds for (relative or absolute) adjust time (set only when test) @LongType *dynamic in development
    time.adjust.time.millis = 0
    
    # ----------------------------------------------------------
    #                                                      Mail
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jan 29 07:34:32 UTC 2018
    - 2.2K bytes
    - Viewed (0)
  5. src/main/resources/fess_env_thumbnail.properties

    # special script :: absolute mode: $(2014/07/10), relative mode: addDay(3).addMonth(4)
    # The milliseconds for (relative or absolute) adjust time (set only when test) @LongType *dynamic in development
    time.adjust.time.millis = 0
    
    # ----------------------------------------------------------
    #                                                      Mail
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Feb 12 13:38:57 UTC 2018
    - 2.2K bytes
    - Viewed (0)
  6. tests/customize_field_test.go

    package tests_test
    
    import (
    	"testing"
    	"time"
    
    	"gorm.io/gorm"
    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestCustomizeColumn(t *testing.T) {
    	type CustomizeColumn struct {
    		ID   int64      `gorm:"column:mapped_id; primary_key:yes"`
    		Name string     `gorm:"column:mapped_name"`
    		Date *time.Time `gorm:"column:mapped_time"`
    	}
    
    	DB.Migrator().DropTable(&CustomizeColumn{})
    	DB.AutoMigrate(&CustomizeColumn{})
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Sep 11 09:33:31 UTC 2020
    - 6.9K bytes
    - Viewed (0)
  7. internal/lsync/lrwmutex.go

    			return false
    		default:
    			if lm.lock(id, source, isWriteLock) {
    				return true
    			}
    			time.Sleep(time.Duration(r.Float64() * float64(lockRetryInterval)))
    		}
    	}
    }
    
    // Unlock unlocks the write lock.
    //
    // It is a run-time error if lm is not locked on entry to Unlock.
    func (lm *LRWMutex) Unlock() {
    	isWriteLock := true
    	success := lm.unlock(isWriteLock)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  8. cmd/iam-object-store.go

    			}
    			retries--
    			if retries <= 0 {
    				return err
    			}
    			time.Sleep(500 * time.Millisecond)
    			goto retry
    		}
    
    		var p PolicyDoc
    		err = p.parseJSON(data)
    		if err != nil {
    			return err
    		}
    
    		if p.Version == 0 {
    			// This means that policy was in the old version (without any
    			// timestamp info). We fetch the mod time of the file and save
    			// that as create and update date.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  9. internal/store/batch_test.go

    		Store:         store,
    		CommitTimeout: 5 * time.Minute,
    		Log: func(ctx context.Context, err error, id string, errKind ...interface{}) {
    			t.Log([]any{err, id, errKind}...)
    		},
    	})
    
    	for i := 0; i < int(limit); i++ {
    		if err := batch.Add(testItem); err != nil {
    			t.Fatalf("failed to add %v; %v", i, err)
    		}
    	}
    
    	batch.Close()
    	time.Sleep(1 * time.Second)
    
    	batchLen := batch.Len()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. tests/scanner_valuer_test.go

    func (role Role) IsAdmin() bool {
    	return role.Name == "admin"
    }
    
    type EmptyTime struct {
    	time.Time
    }
    
    func (t *EmptyTime) Scan(v interface{}) error {
    	nullTime := sql.NullTime{}
    	err := nullTime.Scan(v)
    	t.Time = nullTime.Time
    	return err
    }
    
    func (t EmptyTime) Value() (driver.Value, error) {
    	return time.Now() /* pass tests, mysql 8 doesn't support 0000-00-00 by default */, nil
    }
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 07 07:02:07 UTC 2023
    - 10.6K bytes
    - Viewed (0)
Back to top