diff --git a/stdlib/Dates/docs/src/index.md b/stdlib/Dates/docs/src/index.md index b328b2212a229..4db476e41e2dc 100644 --- a/stdlib/Dates/docs/src/index.md +++ b/stdlib/Dates/docs/src/index.md @@ -643,6 +643,8 @@ Dates.TimeType Dates.DateTime Dates.Date Dates.Time +Dates.TimeZone +Dates.UTC ``` ## Dates Functions diff --git a/stdlib/Dates/src/types.jl b/stdlib/Dates/src/types.jl index f6fd993ebfc84..05d174c3f38cf 100644 --- a/stdlib/Dates/src/types.jl +++ b/stdlib/Dates/src/types.jl @@ -85,7 +85,21 @@ abstract type Calendar <: AbstractTime end # ISOCalendar provides interpretation rules for UTInstants to civil date and time parts struct ISOCalendar <: Calendar end +""" + TimeZone + +Geographic zone generally based on longitude determining what the time is at a certain location. +Some time zones observe daylight savings (eg EST -> EDT). +For implementations and more support, see the `TimeZones` package +""" abstract type TimeZone end + +""" + UTC + +`UTC`, or Coordinated Universal Time, is the [`TimeZone`](@ref) from which all others are measured. +It is associated with the time at 0° longitude. It is not adjusted for daylight savings. +""" struct UTC <: TimeZone end """