github.com/embeddedgo/x@v0.0.6-0.20191217015414-d79a36f562e7/time/tz/europe.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 CET = time.Zone{"CET", 1 * 3600} 11 CEST = time.DST{ 12 // Last Sunday in March 2:00 to last Sunday in October 3:00. 13 &time.Zone{"CEST", 2 * 3600}, 14 // Start: March 25 1:00 UTC, first Sunday next month is April 1. 15 (83*24+1)*3600 | 1<<25, 16 // End: October 28 1:00 UTC, first Sunday next month is November 4. 17 (300*24+1)*3600 | 4<<25, 18 } 19 ) 20 21 var ( 22 EuropeBerlin = time.Location{"Europe/Berlin", &CET, &CEST} 23 EuropeWarsaw = time.Location{"Europe/Warsaw", &CET, &CEST} 24 )