Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for initLocalFromTZI (0.13 sec)

  1. src/time/export_windows_test.go

    // license that can be found in the LICENSE file.
    
    package time
    
    func ForceAusFromTZIForTesting() {
    	ResetLocalOnceForTest()
    	localOnce.Do(func() { initLocalFromTZI(&aus) })
    }
    
    func ForceUSPacificFromTZIForTesting() {
    	ResetLocalOnceForTest()
    	localOnce.Do(func() { initLocalFromTZI(&usPacific) })
    }
    
    func ToEnglishName(stdname, dstname string) (string, error) {
    	return toEnglishName(stdname, dstname)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 14:14:45 UTC 2017
    - 514 bytes
    - Viewed (0)
  2. src/time/zoneinfo_windows.go

    	} else {
    		// "Last" instance of the day.
    		day += 4 * 7
    		if day > daysIn(Month(d.Month), year) {
    			day -= 7
    		}
    	}
    	return t.sec() + int64(day-1)*secondsPerDay + internalToUnix
    }
    
    func initLocalFromTZI(i *syscall.Timezoneinformation) {
    	l := &localLoc
    
    	l.name = "Local"
    
    	nzone := 1
    	if i.StandardDate.Month > 0 {
    		nzone++
    	}
    	l.zone = make([]zone, nzone)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 07:20:34 UTC 2023
    - 6.6K bytes
    - Viewed (0)
Back to top