Standard library / time
time.Time.ZoneBounds()
Return start and end of the current zone interval. A zero bound means no known beginning or end. Expected stdout: 'true true\n'.
Formal Syntax & Structure
go syntaxgo
func (t Time) ZoneBounds() (start, end Time)Return Value
(start, end Time)
Return start and end of the current zone interval.
Working Example
Example Snippetgo
package main
import ( "fmt" "time")
func fixed() time.Time { return time.Date(2024, 2, 29, 12, 34, 56, 123000000, time.UTC) }func main() { start, end := fixed().ZoneBounds(); fmt.Println(start.IsZero(), end.IsZero()) }