Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for absDate (0.12 sec)

  1. src/time/time.go

    // the month and day in which t occurs.
    func (t Time) date(full bool) (year int, month Month, day int, yday int) {
    	return absDate(t.abs(), full)
    }
    
    // absDate is like date but operates on an absolute time.
    //
    // absDate should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - github.com/phuslu/log
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  2. src/time/format.go

    		s += string(buf)
    	}
    	return s
    }
    
    // GoString implements [fmt.GoStringer] and formats t to be printed in Go source
    // code.
    func (t Time) GoString() string {
    	abs := t.abs()
    	year, month, day, _ := absDate(abs, true)
    	hour, minute, second := absClock(abs)
    
    	buf := make([]byte, 0, len("time.Date(9999, time.September, 31, 23, 59, 59, 999999999, time.Local)"))
    	buf = append(buf, "time.Date("...)
    	buf = appendInt(buf, year, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:28 UTC 2024
    - 49.3K bytes
    - Viewed (0)
  3. cmd/update.go

    	// Convert to absolute path
    	absPath, err := filepath.Abs(path)
    	if err != nil {
    		return t, fmt.Errorf("Unable to get absolute path of %s. %w", path, err)
    	}
    
    	// Version is minio non-standard, we will use minio binary's
    	// ModTime as release time.
    	fi, err := Stat(absPath)
    	if err != nil {
    		return t, fmt.Errorf("Unable to get ModTime of %s. %w", absPath, err)
    	}
    
    	// Return the ModTime
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/RuleTaskExecutionIntegrationTest.groovy

                gradle.taskGraph.whenReady {
                    println "task container node state when task graph ready: ${registry.state(tasksPath)}"
                }
                gradle.buildFinished {
                    registry.atState(tasksPath, ModelNode.State.GraphClosed)
                    println "task container node state after graph closing: ${registry.state(tasksPath)}"
                }
            '''
    
            then:
            succeeds "t1"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. cmd/endpoint.go

    	var absPaths []string
    	for _, endpoint := range endpoints {
    		if endpoint.IsLocal {
    			var absPath string
    			absPath, err = filepath.Abs(endpoint.Path)
    			if err != nil {
    				return err
    			}
    			absPaths = append(absPaths, absPath)
    		}
    	}
    	return mountinfo.CheckCrossDevice(absPaths)
    }
    
    // PoolEndpointList is a temporary type to holds the list of endpoints
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/util/apiclient/wait.go

    		context.Background(),
    		constants.KubernetesAPICallRetryInterval,
    		w.timeout,
    		true, func(ctx context.Context) (bool, error) {
    			healthStatus := 0
    			w.client.Discovery().RESTClient().Get().AbsPath("/healthz").Do(ctx).StatusCode(&healthStatus)
    			if healthStatus != http.StatusOK {
    				return false, nil
    			}
    			return true, nil
    		})
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/registry/DefaultModelRegistry.java

        }
    
        @Override
        public <T> T realize(ModelPath path, ModelType<T> type) {
            return toType(type, require(path), "get(ModelPath, ModelType)");
        }
    
        public ModelNode atState(ModelPath path, ModelNode.State state) {
            return atStateOrMaybeLater(path, state, false);
        }
    
        @Override
        public ModelNode atStateOrLater(ModelPath path, ModelNode.State state) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 15:40:00 UTC 2024
    - 45.7K bytes
    - Viewed (0)
  8. configure.py

      else:
        output = subprocess.check_output(cmd, stderr=stderr)
      return output.decode('UTF-8').strip()
    
    
    def cygpath(path):
      """Convert path from posix to windows."""
      return os.path.abspath(path).replace('\\', '/')
    
    
    def get_python_path(environ_cp, python_bin_path):
      """Get the python site package paths."""
      python_paths = []
      if environ_cp.get('PYTHONPATH'):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 04:32:44 UTC 2024
    - 53.8K bytes
    - Viewed (1)
  9. build/root/Makefile

    #
    # Example:
    #   make kubectl kube-proxy
    endef
    #TODO: make EXCLUDE_TARGET auto-generated when there are other files in cmd/
    EXCLUDE_TARGET=OWNERS
    CMD_TARGET = $(filter-out %$(EXCLUDE_TARGET),$(notdir $(abspath $(wildcard cmd/*/))))
    .PHONY: $(CMD_TARGET)
    ifeq ($(PRINT_HELP),y)
    $(CMD_TARGET):
    	echo "$$CMD_HELP_INFO"
    else
    $(CMD_TARGET):
    	hack/make-rules/build.sh cmd/$@
    endif
    
    define HELP_INFO
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 16:43:08 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  10. src/net/http/fs_test.go

    					errors.Is(err, fs.ErrNotExist))
    			}
    		})
    	}
    
    	absPath, err := filepath.Abs("testdata")
    	if err != nil {
    		t.Fatal("get abs path:", err)
    	}
    
    	test("RelativePath", newfs("testdata"))
    	test("AbsolutePath", newfs(absPath))
    }
    
    func TestFileServerCleanPath(t *testing.T) {
    	tests := []struct {
    		path     string
    		wantCode int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
Back to top