Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for timezone (0.16 sec)

  1. doc/go_spec.html

    <p>
    Type definitions may be used to define different boolean, numeric,
    or string types and associate methods with them:
    </p>
    
    <pre>
    type TimeZone int
    
    const (
    	EST TimeZone = -(5 + iota)
    	CST
    	MST
    	PST
    )
    
    func (tz TimeZone) String() string {
    	return fmt.Sprintf("GMT%+dh", tz)
    }
    </pre>
    
    <p>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu May 02 22:43:51 GMT 2024
    - 279.6K bytes
    - Viewed (0)
Back to top