Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for year (0.42 sec)

  1. src/archive/zip/struct.go

    // See: https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-filetimetodosdatetime
    func timeToMsDosTime(t time.Time) (fDate uint16, fTime uint16) {
    	fDate = uint16(t.Day() + int(t.Month())<<5 + (t.Year()-1980)<<9)
    	fTime = uint16(t.Second()/2 + t.Minute()<<5 + t.Hour()<<11)
    	return
    }
    
    // ModTime returns the modification time in UTC using the legacy
    // [ModifiedDate] and [ModifiedTime] fields.
    //
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  2. internal/s3select/sql/parser.go

    	Quantity  *Operand     `parser:" @@ \",\""`
    	Timestamp *PrimaryTerm `parser:" @@ \")\""`
    }
    
    // DateDiffFunc represents the DATE_DIFF function
    type DateDiffFunc struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  3. internal/bucket/object/lock/lock.go

    		}
    	} else if *retention.Years == 0 {
    		return fmt.Errorf("Default retention period must be a positive integer value for 'Years'")
    	} else if *retention.Years > maximumRetentionYears {
    		return fmt.Errorf("Default retention period too large for 'Years' %d", *retention.Years)
    	}
    
    	*dr = DefaultRetention(retention)
    
    	return nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  4. internal/bucket/object/lock/lock_test.go

    			value:       DefaultRetention{Mode: RetGovernance},
    			expectedErr: fmt.Errorf("either Days or Years must be specified"),
    			expectErr:   true,
    		},
    		{
    			value:       DefaultRetention{Mode: RetGovernance, Days: &days},
    			expectedErr: nil,
    			expectErr:   false,
    		},
    		{
    			value:       DefaultRetention{Mode: RetGovernance, Years: &years},
    			expectedErr: nil,
    			expectErr:   false,
    		},
    		{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  5. operator/cmd/mesh/install.go

    		return err
    	}
    
    	tag, err := GetTagVersion(operatorVer.OperatorVersionString)
    	if err != nil {
    		return fmt.Errorf("fetch Istio version: %v", err)
    	}
    
    	// return warning if current date is near the EOL date
    	if operatorVer.IsEOL() {
    		warnMarker := color.New(color.FgYellow).Add(color.Italic).Sprint("WARNING:")
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 14:30:43 GMT 2024
    - 15.5K bytes
    - Viewed (1)
Back to top