Skip to content

Commit 0ee0f72

Browse files
committed
added documentation for Dates.TimeZone, Dates.UTC
see JuliaLang#31202
1 parent 7622bae commit 0ee0f72

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

stdlib/Dates/docs/src/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,8 @@ Dates.TimeType
643643
Dates.DateTime
644644
Dates.Date
645645
Dates.Time
646+
Dates.TimeZone
647+
Dates.UTC
646648
```
647649

648650
## Dates Functions

stdlib/Dates/src/types.jl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,20 @@ abstract type Calendar <: AbstractTime end
8383
# ISOCalendar provides interpretation rules for UTInstants to civil date and time parts
8484
struct ISOCalendar <: Calendar end
8585

86+
"""
87+
TimeZone
88+
89+
Geographic zone generally based on longitude determining what the time is at a certain location.
90+
Some time zones observe daylight savings (eg EST -> EDT).
91+
"""
8692
abstract type TimeZone end
93+
94+
"""
95+
UTC
96+
97+
`UTC`, or Coordinated Universal Time, is the [`TimeZone`](@ref) from which all others are measured.
98+
It is associated with the time at 0° longitude. It is not adjusted for daylight savings.
99+
"""
87100
struct UTC <: TimeZone end
88101

89102
"""

0 commit comments

Comments
 (0)