Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for toTimeString (0.12 sec)

  1. src/time/zoneinfo_js.go

    	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
    	// result, and in Google Chrome, it gives the fully expanded name rather than
    	// the abbreviation.
    	// Hence, we construct the name from the offset.
    	z.name = "UTC"
    	if offset < 0 {
    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