diff --git a/stdlib/Dates/docs/src/index.md b/stdlib/Dates/docs/src/index.md index c8529438beabc..1fa6f273b955c 100644 --- a/stdlib/Dates/docs/src/index.md +++ b/stdlib/Dates/docs/src/index.md @@ -654,7 +654,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) diff --git a/stdlib/Dates/src/io.jl b/stdlib/Dates/src/io.jl index 6a21412f26b0f..6d89438970403 100644 --- a/stdlib/Dates/src/io.jl +++ b/stdlib/Dates/src/io.jl @@ -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)