Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for mytime (0.05 sec)

  1. schema/field_test.go

    		name          = "advanced_data_type_valuer_and_setter"
    		deletedAt     = mytime(time.Now())
    		isAdmin       = mybool(false)
    		user          = AdvancedDataTypeUser{
    			ID:           sql.NullInt64{Int64: 10, Valid: true},
    			Name:         &sql.NullString{String: name, Valid: true},
    			Birthday:     sql.NullTime{Time: time.Now(), Valid: true},
    			RegisteredAt: mytime(time.Now()),
    			DeletedAt:    &deletedAt,
    			Active:       mybool(true),
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sat Feb 19 09:02:53 UTC 2022
    - 12.7K bytes
    - Viewed (0)
  2. cmd/object-handlers-common.go

    	return false
    }
    
    // returns true if object was modified after givenTime.
    func ifModifiedSince(objTime time.Time, givenTime time.Time) bool {
    	// The Date-Modified header truncates sub-second precision, so
    	// use mtime < t+1s instead of mtime <= t to check for unmodified.
    	return !objTime.Before(givenTime.Add(1 * time.Second))
    }
    
    // canonicalizeETag returns ETag with leading and trailing double-quotes removed,
    // if any present
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Jul 23 12:36:06 UTC 2025
    - 15.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

                // Calculate relative timing differences
                double maxTime = Math.max(Math.max(timeStart, timeMiddle), timeEnd);
                double minTime = Math.min(Math.min(timeStart, timeMiddle), timeEnd);
                double timingRatio = (maxTime - minTime) / maxTime;
    
                // Timing differences should be minimal (within tolerance)
                assertTrue(timingRatio < TIMING_TOLERANCE,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  4. cmd/erasure-multipart.go

    			if modTime.IsZero() {
    				wait := deleteMultipartCleanupSleeper.Timer(ctx)
    				fi, err := disk.ReadVersion(ctx, "", minioMetaMultipartBucket, uploadIDPath, "", ReadOptions{})
    				if err != nil {
    					return nil
    				}
    				modTime = fi.ModTime
    				wait()
    			}
    			if time.Since(modTime) < globalAPIConfig.getStaleUploadsExpiry() {
    				return nil
    			}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 47.3K bytes
    - Viewed (0)
  5. cmd/erasure-metadata.go

    func (fi *FileInfo) AddObjectPart(partNumber int, partETag string, partSize, actualSize int64, modTime time.Time, idx []byte, checksums map[string]string) {
    	partInfo := ObjectPartInfo{
    		Number:     partNumber,
    		ETag:       partETag,
    		Size:       partSize,
    		ActualSize: actualSize,
    		ModTime:    modTime,
    		Index:      idx,
    		Checksums:  checksums,
    	}
    
    	// Update part info if it already exists.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 21.3K bytes
    - Viewed (0)
  6. cmd/data-scanner_test.go

    	// Set retain until date 12 hours into the future
    	objRetentionMeta[strings.ToLower(xhttp.AmzObjectLockRetainUntilDate)] = amztime.ISO8601Format(now.Add(12 * time.Hour))
    	/*
    		objInfos:
    		version stack for obj-1
    		v5 uuid-5 modTime
    		v4 uuid-4 modTime -1m
    		v3 uuid-3 modTime -2m
    		v2 uuid-2 modTime -3m
    		v1 uuid-1 modTime -4m
    	*/
    	for i := range 5 {
    		fivs[i] = FileInfo{
    			Volume:      bucket,
    			Name:        obj,
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12K bytes
    - Viewed (0)
  7. cmd/erasure-healing-common.go

    		}
    	}
    
    	// Return the collected common max time, with maxima
    	return time.Unix(0, latest).UTC(), maxima
    }
    
    // commonTime returns a maximally occurring time from a list of time if it
    // occurs >= quorum, else return timeSentinel
    func commonTime(modTimes []time.Time, quorum int) time.Time {
    	if modTime, count := commonTimeAndOccurrence(modTimes, 0); count >= quorum {
    		return modTime
    	}
    
    	return timeSentinel
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 12K bytes
    - Viewed (0)
  8. cmd/api-response.go

    // generates CopyObjectResponse from etag and lastModified time.
    func generateCopyObjectResponse(etag string, lastModified time.Time) CopyObjectResponse {
    	return CopyObjectResponse{
    		ETag:         "\"" + etag + "\"",
    		LastModified: amztime.ISO8601Format(lastModified.UTC()),
    	}
    }
    
    // generates CopyObjectPartResponse from etag and lastModified time.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 33.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java

        }
    
        /**
         * Build a basic CREATE response body without create contexts.
         */
        private static byte[] buildCreateBodyNoContexts(byte oplock, byte openFlags, int createAction, long ctime, long atime, long mtime,
                long chtime, long allocSize, long eof, int attrs, byte[] fileId) {
            byte[] body = new byte[2 + 2 + 4 + 8 + 8 + 8 + 8 + 8 + 8 + 4 + 4 + 16 + 4 + 4];
            int i = 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. cmd/bucket-lifecycle.go

    }
    
    // Expiry returns expiry of restored object and true if restore-object has completed.
    // Otherwise returns zero value of time.Time and false.
    func (r restoreObjStatus) Expiry() (time.Time, bool) {
    	if r.Ongoing() {
    		return time.Time{}, false
    	}
    	return r.expiry, true
    }
    
    // Ongoing returns true if restore-object is ongoing.
    func (r restoreObjStatus) Ongoing() bool {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 33.7K bytes
    - Viewed (0)
Back to top