From 826bb8b9c89363f56e13753b5bde568870984c21 Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Thu, 23 May 2019 09:12:05 -0500 Subject: [PATCH] Show correct format documentation (#31484) Shows the `Dates.format` table which was the behaviour in the Julia 0.6 documentation. --- stdlib/Dates/docs/src/index.md | 2 +- stdlib/Dates/src/io.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)