Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for timezone (0.25 sec)

  1. src/archive/zip/reader_test.go

    				Modified: time.Date(2011, 12, 8, 10, 4, 24, 0, timeZone(0)),
    				Mode:     0666,
    			},
    			{
    				Name:     "dir/bar",
    				Content:  []byte("foo \r\n"),
    				Modified: time.Date(2011, 12, 8, 10, 4, 50, 0, timeZone(0)),
    				Mode:     0666,
    			},
    			{
    				Name:     "dir/empty/",
    				Content:  []byte{},
    				Modified: time.Date(2011, 12, 8, 10, 8, 6, 0, timeZone(0)),
    				Mode:     fs.ModeDir | 0777,
    			},
    			{
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  2. src/archive/zip/struct.go

    	//
    	// When reading, an extended timestamp is preferred over the legacy MS-DOS
    	// date field, and the offset between the times is used as the timezone.
    	// If only the MS-DOS date is present, the timezone is assumed to be UTC.
    	//
    	// When writing, an extended timestamp (which is timezone-agnostic) is
    	// always emitted. The legacy MS-DOS date field is encoded according to the
    	// location of the Modified time.
    	Modified time.Time
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  3. src/archive/zip/writer_test.go

    		}
    	}
    }
    
    func TestWriterTime(t *testing.T) {
    	var buf bytes.Buffer
    	h := &FileHeader{
    		Name:     "test.txt",
    		Modified: time.Date(2017, 10, 31, 21, 11, 57, 0, timeZone(-7*time.Hour)),
    	}
    	w := NewWriter(&buf)
    	if _, err := w.CreateHeader(h); err != nil {
    		t.Fatalf("unexpected CreateHeader error: %v", err)
    	}
    	if err := w.Close(); err != nil {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  4. doc/go1.17_spec.html

    <p>
    Type definitions may be used to define different boolean, numeric,
    or string types and associate methods with them:
    </p>
    
    <pre>
    type TimeZone int
    
    const (
    	EST TimeZone = -(5 + iota)
    	CST
    	MST
    	PST
    )
    
    func (tz TimeZone) String() string {
    	return fmt.Sprintf("GMT%+dh", tz)
    }
    </pre>
    
    
    <h3 id="Variable_declarations">Variable declarations</h3>
    
    <p>
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  5. src/archive/zip/reader.go

    	if !modified.IsZero() {
    		f.Modified = modified.UTC()
    
    		// If legacy MS-DOS timestamps are set, we can use the delta between
    		// the legacy and extended versions to estimate timezone offset.
    		//
    		// A non-UTC timezone is always used (even if offset is zero).
    		// Thus, FileHeader.Modified.Location() == time.UTC is useful for
    		// determining whether extended timestamps are present.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  6. doc/go_spec.html

    <p>
    Type definitions may be used to define different boolean, numeric,
    or string types and associate methods with them:
    </p>
    
    <pre>
    type TimeZone int
    
    const (
    	EST TimeZone = -(5 + iota)
    	CST
    	MST
    	PST
    )
    
    func (tz TimeZone) String() string {
    	return fmt.Sprintf("GMT%+dh", tz)
    }
    </pre>
    
    <p>
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 279.3K bytes
    - Viewed (0)
  7. src/archive/zip/writer.go

    		// do not convert to UTC, because we assume the user intends to encode
    		// the date using the specified timezone. A user may want this control
    		// because many legacy ZIP readers interpret the timestamp according
    		// to the local timezone.
    		//
    		// The timezone is only non-UTC if a user directly sets the Modified
    		// field directly themselves. All other approaches sets UTC.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  8. misc/ios/go_ios_exec.go

    		dst := filepath.Join(dstbase, pkgpath)
    		src := filepath.Join(cwd, pkgpath)
    		if err := copyLocalDir(dst, src); err != nil {
    			return "", err
    		}
    	}
    
    	if underGoRoot {
    		// Copy timezone file.
    		//
    		// Typical apps have the zoneinfo.zip in the root of their app bundle,
    		// read by the time package as the working directory at initialization.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
Back to top