Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EndpointAPI = "https://worldtimeapi.org/api" EndpointTimezone = EndpointAPI + "/timezone" )
Functions ¶
Types ¶
type Time ¶
type Time struct { Abbreviation string `json:"abbreviation"` ClientIP string `json:"client_ip"` Datetime time.Time `json:"datetime"` DayOfWeek int `json:"day_of_week"` DayOfYear int `json:"day_of_year"` DST bool `json:"dst"` DSTFrom time.Time `json:"dst_from"` DSTOffset int `json:"dst_offset"` DSTUntil time.Time `json:"dst_until"` RawOffset int `json:"raw_offset"` Timezone string `json:"timezone"` Unixtime int `json:"unixtime"` UTCDatetime time.Time `json:"utc_datetime"` UTCOffset string `json:"utc_offset"` WeekNumber int `json:"week_number"` }
Click to show internal directories.
Click to hide internal directories.