Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for months (0.19 sec)

  1. internal/config/heal/heal.go

    			return -1, nil
    		}
    	}
    
    	// Try to parse as a number of months
    	if !strings.HasSuffix(s, "m") {
    		return -1, errors.New("unknown format")
    	}
    
    	months, err := strconv.Atoi(strings.TrimSuffix(s, "m"))
    	if err != nil {
    		return -1, err
    	}
    
    	if months < minimumBitrotCycleInMonths {
    		return -1, fmt.Errorf("minimum bitrot cycle is %d month(s)", minimumBitrotCycleInMonths)
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 11 01:10:30 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  2. internal/s3select/sql/timestampfuncs.go

    	}
    	return FromTimestamp(t.Add(duration)), nil
    }
    
    // dateDiff computes the difference between two times in terms of the
    // `timePart` which can be years, months, days, hours, minutes or
    // seconds. For difference in years, months or days, the time part,
    // including timezone is ignored.
    func dateDiff(timePart string, ts1, ts2 time.Time) (*Value, error) {
    	if ts2.Before(ts1) {
    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/update-notifier_test.go

    		// Testcase index 20
    		{30 * 24 * time.Hour, "my_download_url", "1 month before the latest release"},
    		{31 * 24 * time.Hour, "my_download_url", "1 month before the latest release"},
    		{61 * 24 * time.Hour, "my_download_url", "2 months before the latest release"},
    		{360 * 24 * time.Hour, "my_download_url", "1 year before the latest release"},
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Jul 31 15:36:19 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  4. internal/mountinfo/mountinfo_linux_test.go

    	mountsPath := filepath.Join(dir, "mounts")
    	if err = os.WriteFile(mountsPath, []byte(successCase), 0o666); err != nil {
    		t.Fatal(err)
    	}
    	// Verifies if reading each line worked properly.
    	{
    		var mounts mountInfos
    		mounts, err = readProcMounts(mountsPath)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if len(mounts) != 3 {
    			t.Fatalf("expected 3 mounts, got %d", len(mounts))
    		}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  5. internal/mountinfo/mountinfo_windows.go

    package mountinfo
    
    import (
    	"path/filepath"
    	"sync"
    
    	"golang.org/x/sys/windows"
    )
    
    // CheckCrossDevice - check if any input path has multiple sub-mounts.
    // this is a dummy function and returns nil for now.
    func CheckCrossDevice(paths []string) error {
    	return nil
    }
    
    // mountPointCache contains results of IsLikelyMountPoint
    var mountPointCache sync.Map
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 2K bytes
    - Viewed (0)
  6. internal/s3select/select_test.go

    			query:      `SELECT date_diff(month, '2010-01-01T', '2010-05T') FROM S3Object LIMIT 1`,
    			wantResult: `{"_1":4}`,
    		},
    		{
    			name:       "date_diff_month_oney",
    			query:      `SELECT date_diff(month, '2010T', '2011T') FROM S3Object LIMIT 1`,
    			wantResult: `{"_1":12}`,
    		},
    		{
    			name:       "date_diff_month_neg",
    			query:      `SELECT date_diff(month, '2011T', '2010T') FROM S3Object LIMIT 1`,
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K bytes
    - Viewed (0)
  7. internal/s3select/sql/parser_test.go

    		"sum(2 + s.id)",
    		"sum(t)",
    		"avg(s.id[1])",
    		"coalesce(s.id[1], 2, 2 + 3)",
    
    		"cast(s as string)",
    		"cast(s AS INT)",
    		"cast(s as DECIMAL)",
    		"extract(YEAR from '2018-01-09')",
    		"extract(month from '2018-01-09')",
    
    		"extract(hour from '2018-01-09')",
    		"extract(day from '2018-01-09')",
    		"substring('abcd' from 2 for 2)",
    		"substring('abcd' from 2)",
    		"substring('abcd' , 2 , 2)",
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  8. src/archive/zip/struct.go

    func msDosTimeToTime(dosDate, dosTime uint16) time.Time {
    	return time.Date(
    		// date bits 0-4: day of month; 5-8: month; 9-15: years since 1980
    		int(dosDate>>9+1980),
    		time.Month(dosDate>>5&0xf),
    		int(dosDate&0x1f),
    
    		// time bits 0-4: second/2; 5-10: minute; 11-15: hour
    		int(dosTime>>11),
    		int(dosTime>>5&0x3f),
    		int(dosTime&0x1f*2),
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  9. internal/mountinfo/mountinfo.go

    package mountinfo
    
    // mountInfo - This represents a single line in /proc/mounts.
    type mountInfo struct {
    	Device  string
    	Path    string
    	FSType  string
    	Options []string
    	Freq    string
    	Pass    string
    }
    
    func (m mountInfo) String() string {
    	return m.Path
    }
    
    // mountInfos - This represents the entire /proc/mounts.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 1.1K bytes
    - Viewed (0)
  10. internal/s3select/sql/parser.go

    	Quantity  *Operand     `parser:" @@ \",\""`
    	Timestamp *PrimaryTerm `parser:" @@ \")\""`
    }
    
    // DateDiffFunc represents the DATE_DIFF function
    type DateDiffFunc 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)
Back to top