Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for mintha (0.2 sec)

  1. 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 May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 4.8K bytes
    - Viewed (0)
  2. 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 May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:10:30 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  3. 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 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  4. 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 May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jul 31 15:36:19 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  5. 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 May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K bytes
    - Viewed (0)
  6. internal/s3select/sql/value.go

    	if isFirstRow {
    		intA, okI := a.ToInt()
    		if okI {
    			v.setInt(intA)
    			return nil
    		}
    		floatA, _ := a.ToFloat()
    		v.setFloat(floatA)
    		return nil
    	}
    
    	intV, ok1i := v.ToInt()
    	intA, ok2i := a.ToInt()
    	if ok1i && ok2i {
    		result := intV
    		if !isMax {
    			if intA < result {
    				result = intA
    			}
    		} else {
    			if intA > result {
    				result = intA
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 20.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 May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  8. 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)
Back to top