Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 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. 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 (0)
  4. 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)
  5. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    }
    
    func realpath(srcpath string, abspath []byte) (pathlen int, errno int) {
    	var source [1024]byte
    	copy(source[:], srcpath)
    	source[len(srcpath)] = 0
    	ret := runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___REALPATH_A<<4, //__realpath_a()
    		[]uintptr{uintptr(unsafe.Pointer(&source[0])),
    			uintptr(unsafe.Pointer(&abspath[0]))})
    	if ret != 0 {
    		index := bytes.IndexByte(abspath[:], byte(0))
    		if index != -1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modget/get.go

    	for _, q := range r.localQueries {
    		q.pathOnce(q.pattern, func() pathSet {
    			absDetail := ""
    			if !filepath.IsAbs(q.pattern) {
    				if absPath, err := filepath.Abs(q.pattern); err == nil {
    					absDetail = fmt.Sprintf(" (%s)", absPath)
    				}
    			}
    
    			// Absolute paths like C:\foo and relative paths like ../foo... are
    			// restricted to matching packages in the main module.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:26:32 UTC 2024
    - 66.5K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modload/init.go

    // file to include the associated module path.
    func UpdateWorkFile(wf *modfile.WorkFile) {
    	missingModulePaths := map[string]string{} // module directory listed in file -> abspath modroot
    
    	for _, d := range wf.Use {
    		if d.Path == "" {
    			continue // d is marked for deletion.
    		}
    		modRoot := d.Path
    		if d.ModulePath == "" {
    			missingModulePaths[d.Path] = modRoot
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
Back to top