From 63179e839ec356bd3d0097da331589bbec7adb37 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. (cherry picked from commit 826bb8b9c89363f56e13753b5bde568870984c21) --- 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 bb0a9f2dabf3c4..478c76d38b863f 100644 --- a/stdlib/Dates/docs/src/index.md +++ b/stdlib/Dates/docs/src/index.md @@ -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) diff --git a/stdlib/Dates/src/io.jl b/stdlib/Dates/src/io.jl index a3d1d036a34f67..02aaf62de9dd90 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)