Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for isdst (0.05 sec)

  1. src/time/zoneinfo.go

    	offset = zone.offset
    	start = tx[lo].when
    	// end = maintained during the search
    	isDST = zone.isDST
    
    	// If we're at the end of the known zone transitions,
    	// try the extend string.
    	if lo == len(tx)-1 && l.extend != "" {
    		if ename, eoffset, estart, eend, eisDST, ok := tzset(l.extend, start, sec); ok {
    			return ename, eoffset, estart, eend, eisDST
    		}
    	}
    
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:30 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. src/time/zoneinfo_read.go

    							offset: offset,
    							isDST:  isDST,
    						}
    					}
    				}
    			}
    			break
    		}
    	}
    
    	return l, nil
    }
    
    func findZone(zones []zone, name string, offset int, isDST bool) int {
    	for i, z := range zones {
    		if z.name == name && z.offset == offset && z.isDST == isDST {
    			return i
    		}
    	}
    	return -1
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  3. src/time/zoneinfo_windows.go

    	// return above.
    	std.offset = -int(i.Bias+i.StandardBias) * 60
    
    	dst := &l.zone[1]
    	dst.name = dstname
    	dst.offset = -int(i.Bias+i.DaylightBias) * 60
    	dst.isDST = true
    
    	// Arrange so that d0 is first transition date, d1 second,
    	// i0 is index of zone after first transition, i1 second.
    	d0 := &i.StandardDate
    	d1 := &i.DaylightDate
    	i0 := 0
    	i1 := 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 07:20:34 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  4. src/time/time.go

    func UnixMicro(usec int64) Time {
    	return Unix(usec/1e6, (usec%1e6)*1e3)
    }
    
    // IsDST reports whether the time in the configured location is in Daylight Savings Time.
    func (t Time) IsDST() bool {
    	_, _, _, _, isDST := t.loc.lookup(t.Unix())
    	return isDST
    }
    
    func isLeap(year int) bool {
    	return year%4 == 0 && (year%100 != 0 || year%400 == 0)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  5. src/time/time_test.go

    		6: {Date(2009, 1, 1, 12, 0, 0, 0, tzFixed), false},
    		7: {Date(2009, 6, 1, 12, 0, 0, 0, tzFixed), false},
    	}
    
    	for i, tt := range tests {
    		got := tt.time.IsDST()
    		if got != tt.want {
    			t.Errorf("#%d:: (%#v).IsDST()=%t, want %t", i, tt.time.Format(RFC3339), got, tt.want)
    		}
    	}
    }
    
    func TestTimeAddSecOverflow(t *testing.T) {
    	// Test it with positive delta.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux.go

    	NFTA_COMPAT_TYPE   = 0x3
    )
    
    type RTCTime struct {
    	Sec   int32
    	Min   int32
    	Hour  int32
    	Mday  int32
    	Mon   int32
    	Year  int32
    	Wday  int32
    	Yday  int32
    	Isdst int32
    }
    
    type RTCWkAlrm struct {
    	Enabled uint8
    	Pending uint8
    	Time    RTCTime
    }
    
    type BlkpgIoctlArg struct {
    	Op      int32
    	Flags   int32
    	Datalen int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 251K bytes
    - Viewed (0)
  7. tools/istio-iptables/pkg/config/config_test.go

    	tests := []struct {
    		name     string
    		lipas    func() ([]net.Addr, error)
    		isDS     bool
    		expected bool
    	}{
    		{
    			name: "ipv4 only local ip addresses",
    			lipas: func() ([]net.Addr, error) {
    				return tesrLocalIPAddrs([]netip.Addr{
    					netip.MustParseAddr("127.0.0.1"),
    					netip.MustParseAddr("1.2.3.5"),
    				})
    			},
    			isDS:     false,
    			expected: false,
    		},
    		{
    			name: "ipv6 only local ip addresses",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 22:24:38 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  8. pkg/proxy/winkernel/proxier.go

    		}
    	}
    
    	klog.V(1).InfoS("Hns Network loaded", "hnsNetworkInfo", hnsNetworkInfo)
    	isDSR := config.EnableDSR
    	if isDSR && !utilfeature.DefaultFeatureGate.Enabled(kubefeatures.WinDSR) {
    		return nil, fmt.Errorf("WinDSR feature gate not enabled")
    	}
    
    	err = hcnImpl.DsrSupported()
    	if isDSR && err != nil {
    		return nil, err
    	}
    
    	var sourceVip string
    	var hostMac string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 59K bytes
    - Viewed (0)
  9. src/internal/runtime/atomic/atomic_riscv64.s

    //
    //   - If both are set, the CPU may not reorder the instruction at all.
    //
    // These four modes correspond to other well-known memory models on other CPUs.
    // On ARM, aq corresponds to a dmb ishst, aq+rl corresponds to a dmb ish. On
    // Intel, aq corresponds to an lfence, rl to an sfence, and aq+rl to an mfence
    // (or a lock prefix).
    //
    // Go's memory model requires that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

        }
    
        fun setPathSegment(
          index: Int,
          pathSegment: String,
        ) = apply {
          val canonicalPathSegment = pathSegment.canonicalize(encodeSet = PATH_SEGMENT_ENCODE_SET)
          require(!isDot(canonicalPathSegment) && !isDotDot(canonicalPathSegment)) {
            "unexpected path segment: $pathSegment"
          }
          encodedPathSegments[index] = canonicalPathSegment
        }
    
        fun setEncodedPathSegment(
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 63.5K bytes
    - Viewed (0)
Back to top