Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestEnvTZUsage (0.18 sec)

  1. src/time/zoneinfo_unix_test.go

    // license that can be found in the LICENSE file.
    
    //go:build unix && !ios && !android
    
    package time_test
    
    import (
    	"os"
    	"testing"
    	"time"
    )
    
    func TestEnvTZUsage(t *testing.T) {
    	const env = "TZ"
    	tz, ok := os.LookupEnv(env)
    	if !ok {
    		defer os.Unsetenv(env)
    	} else {
    		defer os.Setenv(env, tz)
    	}
    	defer time.ForceUSPacificForTesting()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 2.3K bytes
    - Viewed (0)
Back to top