Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for RuleKind (0.08 sec)

  1. src/time/export_test.go

    func LoadFromEmbeddedTZData(zone string) (string, error) {
    	return loadFromEmbeddedTZData(zone)
    }
    
    type RuleKind int
    
    const (
    	RuleJulian       = RuleKind(ruleJulian)
    	RuleDOY          = RuleKind(ruleDOY)
    	RuleMonthWeekDay = RuleKind(ruleMonthWeekDay)
    	UnixToInternal   = unixToInternal
    )
    
    type Rule struct {
    	Kind RuleKind
    	Day  int
    	Week int
    	Mon  int
    	Time int
    }
    
    func TzsetRule(s string) (Rule, string, bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 19:23:32 UTC 2022
    - 4K bytes
    - Viewed (0)
  2. src/time/zoneinfo.go

    	off += secs
    
    	if neg {
    		off = -off
    	}
    	return off, s, true
    }
    
    // ruleKind is the kinds of rules that can be seen in a tzset string.
    type ruleKind int
    
    const (
    	ruleJulian ruleKind = iota
    	ruleDOY
    	ruleMonthWeekDay
    )
    
    // rule is a rule read from a tzset string.
    type rule struct {
    	kind ruleKind
    	day  int
    	week int
    	mon  int
    	time int // transition time
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:30 UTC 2024
    - 18.2K bytes
    - Viewed (0)
Back to top