Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getTimezoneOffset (0.32 sec)

  1. src/time/zoneinfo_js.go

    	"/usr/share/zoneinfo/",
    	"/usr/share/lib/zoneinfo/",
    	"/usr/lib/locale/TZ/",
    }
    
    func initLocal() {
    	localLoc.name = "Local"
    
    	z := zone{}
    	d := js.Global().Get("Date").New()
    	offset := d.Call("getTimezoneOffset").Int() * -1
    	z.offset = offset * 60
    	// According to https://tc39.github.io/ecma262/#sec-timezoneestring,
    	// the timezone name from (new Date()).toTimeString() is an implementation-dependent
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 29 20:05:34 UTC 2022
    - 1K bytes
    - Viewed (0)
Back to top