Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ForceAndroidTzdataForTest (0.19 sec)

  1. src/time/export_android_test.go

    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package time
    
    func ForceAndroidTzdataForTest() (undo func()) {
    	allowGorootSource = false
    	origLoadFromEmbeddedTZData := loadFromEmbeddedTZData
    	loadFromEmbeddedTZData = nil
    
    	return func() {
    		allowGorootSource = true
    		loadFromEmbeddedTZData = origLoadFromEmbeddedTZData
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 18 20:57:35 UTC 2022
    - 438 bytes
    - Viewed (0)
  2. src/time/zoneinfo_android_test.go

    // license that can be found in the LICENSE file.
    
    package time_test
    
    import (
    	"testing"
    	. "time"
    )
    
    func TestAndroidTzdata(t *testing.T) {
    	undo := ForceAndroidTzdataForTest()
    	defer undo()
    	if _, err := LoadLocation("America/Los_Angeles"); err != nil {
    		t.Error(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 18 20:57:35 UTC 2022
    - 386 bytes
    - Viewed (0)
Back to top