Skip to content

Commit 6b4cb65

Browse files
omusKristofferC
authored andcommitted
Show correct format documentation (#31484)
Shows the `Dates.format` table which was the behaviour in the Julia 0.6 documentation. (cherry picked from commit 826bb8b)
1 parent 04ff9e5 commit 6b4cb65

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/Dates/docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ Dates.DateTime(::Dates.Period)
653653
Dates.DateTime(::Function, ::Any...)
654654
Dates.DateTime(::Dates.TimeType)
655655
Dates.DateTime(::AbstractString, ::AbstractString)
656-
Dates.format
656+
Dates.format(::Dates.TimeType, ::AbstractString)
657657
Dates.DateFormat
658658
Dates.@dateformat_str
659659
Dates.DateTime(::AbstractString, ::Dates.DateFormat)

stdlib/Dates/src/io.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ All subtypes of `AbstractDateToken` must define this method in order
3434
to be able to print a Date / DateTime object according to a `DateFormat`
3535
containing that token.
3636
"""
37-
function format end
37+
format(io::IO, tok::AbstractDateToken, dt::TimeType, locale)
3838

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

0 commit comments

Comments
 (0)