Skip to content

Commit

Permalink
Show correct format documentation (#31484)
Browse files Browse the repository at this point in the history
Shows the `Dates.format` table which was the behaviour in the Julia 0.6
documentation.

(cherry picked from commit 826bb8b)
  • Loading branch information
omus authored and KristofferC committed Feb 20, 2020
1 parent 4e3613b commit 63179e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stdlib/Dates/docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ Dates.DateTime(::Dates.Period)
Dates.DateTime(::Function, ::Any...)
Dates.DateTime(::Dates.TimeType)
Dates.DateTime(::AbstractString, ::AbstractString)
Dates.format
Dates.format(::Dates.TimeType, ::AbstractString)
Dates.DateFormat
Dates.@dateformat_str
Dates.DateTime(::AbstractString, ::Dates.DateFormat)
Expand Down
2 changes: 1 addition & 1 deletion stdlib/Dates/src/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ All subtypes of `AbstractDateToken` must define this method in order
to be able to print a Date / DateTime object according to a `DateFormat`
containing that token.
"""
function format end
format(io::IO, tok::AbstractDateToken, dt::TimeType, locale)

# fallback to tryparsenext/format methods that don't care about locale
@inline function tryparsenext(d::AbstractDateToken, str, i, len, locale)
Expand Down

0 comments on commit 63179e8

Please sign in to comment.