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 authored and simeonschaub committed Aug 11, 2020
1 parent 020fe59 commit a8b22c7
Show file tree
Hide file tree
Showing 2 changed files with 16 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
14 changes: 14 additions & 0 deletions stdlib/Dates/src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

"""
Expand Down

0 comments on commit a8b22c7

Please sign in to comment.