github.com/embeddedgo/x@v0.0.6-0.20191217015414-d79a36f562e7/time/tz/australia.go (about) 1 // Copyright 2019 Michal Derkacz. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package tz 6 7 import "github.com/embeddedgo/x/time" 8 9 var ( 10 AEST = time.Zone{"AEST", 10 * 3600} 11 AEDT = time.DST{ 12 // First Sunday in October 2:00 to first Sunday in April 3:00. 13 &time.Zone{"AEDT", 11 * 3600}, 14 // Start: October 6 16:00 UTC, first Sunday this month is October 7. 15 (278*24+16)*3600 | 7<<25, 16 // End: March 31 16:00 UTC, first Sunday in April is April 1. 17 (89*24+16)*3600 | 1<<25, 18 } 19 ) 20 21 var ( 22 AustraliaSydney = time.Location{"Australia/Sydney", &AEST, &AEDT} 23 )