Home | History | Annotate | Download | only in time

Lines Matching defs:Location

12 // A Location maps time instants to the zone in use at that time.
13 // Typically, the Location represents the collection of time offsets
15 type Location struct {
23 // zone for the time when the Location was created.
56 var UTC *Location = &utcLoc
59 // and ensure that it never returns a nil *Location,
61 var utcLoc = Location{name: "UTC"}
64 var Local *Location = &localLoc
68 var localLoc Location
71 func (l *Location) get() *Location {
83 func (l *Location) String() string {
87 // FixedZone returns a Location that always uses
89 func FixedZone(name string, offset int) *Location {
90 l := &Location{
108 func (l *Location) lookup(sec int64) (name string, offset int, isDST bool, start, end int64) {
183 func (l *Location) lookupFirstZone() int {
211 func (l *Location) firstZoneUsed() bool {
223 func (l *Location) lookupName(name string, unix int64) (offset int, isDST bool, ok bool) {
259 // LoadLocation returns the Location with the given name.
264 // Otherwise, the name is taken to be a location name corresponding to a file
273 func LoadLocation(name string) (*Location, error) {