Skip to content

Commit

Permalink
added documentation for Dates.TimeZone, Dates.UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdofu committed Jun 29, 2020
1 parent 7622bae commit 0ee0f72
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stdlib/Dates/docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,8 @@ Dates.TimeType
Dates.DateTime
Dates.Date
Dates.Time
Dates.TimeZone
Dates.UTC
```

## Dates Functions
Expand Down
13 changes: 13 additions & 0 deletions stdlib/Dates/src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,20 @@ 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).
"""
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

"""
Expand Down

0 comments on commit 0ee0f72

Please sign in to comment.