Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for wasmtime (0.43 sec)

  1. internal/s3select/sql/timestampfuncs.go

    	hasZone := zoneOffset != 0
    	hasFracSecond := t.Nanosecond() != 0
    	hasSecond := t.Second() != 0
    	hasTime := t.Hour() != 0 || t.Minute() != 0
    	hasDay := t.Day() != 1
    	hasMonth := t.Month() != 1
    
    	switch {
    	case hasFracSecond:
    		return t.Format(layoutNanosecond)
    	case hasSecond:
    		return t.Format(layoutSecond)
    	case hasTime || hasZone:
    		return t.Format(layoutMinute)
    	case hasDay:
    		return t.Format(layoutDay)
    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. istioctl/pkg/util/configdump/route.go

    	}
    	drc := routeDump.GetDynamicRouteConfigs()
    
    	lastUpdated := time.Unix(0, 0) // get the oldest possible timestamp
    	for i := range drc {
    		if drc[i].LastUpdated != nil {
    			drLastUpdated := drc[i].LastUpdated.AsTime()
    			if drLastUpdated.After(lastUpdated) {
    				lastUpdated = drLastUpdated
    			}
    		}
    	}
    	if lastUpdated.After(time.Unix(0, 0)) { // if a timestamp was obtained from a drc
    		return &lastUpdated, nil
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Nov 03 08:41:32 GMT 2022
    - 3.2K bytes
    - Viewed (0)
  3. src/archive/tar/common.go

    			format.mustNotBe(FormatGNU)
    		}
    		isMtime := paxKey == paxMtime
    		fitsOctal := fitsInOctal(size, ts.Unix())
    		if (isMtime && !fitsOctal) || !isMtime {
    			whyNoUSTAR = fmt.Sprintf("USTAR cannot encode %s=%v", name, ts)
    			format.mustNotBe(FormatUSTAR)
    		}
    		needsNano := ts.Nanosecond() != 0
    		if !isMtime || !fitsOctal || needsNano {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  4. src/archive/tar/tar_test.go

    		paxHdrs: map[string]string{paxMtime: "8589934592"},
    		formats: FormatPAX | FormatGNU,
    	}, {
    		header:  &Header{ModTime: time.Unix(math.MaxInt64, 0)},
    		paxHdrs: map[string]string{paxMtime: "9223372036854775807"},
    		formats: FormatPAX | FormatGNU,
    	}, {
    		header:  &Header{ModTime: time.Unix(math.MaxInt64, 0), Format: FormatUSTAR},
    		paxHdrs: map[string]string{paxMtime: "9223372036854775807"},
    		formats: FormatUnknown,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  5. src/archive/tar/reader.go

    		case paxGid:
    			id64, err = strconv.ParseInt(v, 10, 64)
    			hdr.Gid = int(id64) // Integer overflow possible
    		case paxAtime:
    			hdr.AccessTime, err = parsePAXTime(v)
    		case paxMtime:
    			hdr.ModTime, err = parsePAXTime(v)
    		case paxCtime:
    			hdr.ChangeTime, err = parsePAXTime(v)
    		case paxSize:
    			hdr.Size, err = strconv.ParseInt(v, 10, 64)
    		default:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  6. cmd/metacache-entries_test.go

    	}
    }
    
    func Test_metaCacheEntries_resolve(t *testing.T) {
    	baseTime, err := time.Parse("2006/01/02", "2015/02/25")
    	if err != nil {
    		t.Fatal(err)
    	}
    	inputs := []xlMetaV2{
    		0: {
    			versions: []xlMetaV2ShallowVersion{
    				{header: xlMetaV2VersionHeader{
    					VersionID: [16]byte{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
    					ModTime:   baseTime.Add(30 * time.Minute).UnixNano(),
    					Signature: [4]byte{1, 1, 1, 1},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 31.6K bytes
    - Viewed (0)
Back to top