github.com/hairyhenderson/templater@v3.5.0+incompatible/time/time.go (about) 1 // Package time contains functions to help work with date and time 2 package time 3 4 import ( 5 "time" 6 ) 7 8 // ZoneName - a convenience function for determining the current timezone's name 9 func ZoneName() string { 10 n, _ := time.Now().Zone() 11 return n 12 } 13 14 // ZoneOffset - determine the current timezone's offset, in seconds east of UTC 15 func ZoneOffset() int { 16 _, o := time.Now().Zone() 17 return o 18 }