diff --git a/base/dates/adjusters.jl b/base/dates/adjusters.jl index f1c9a3075a985..8199509b7e557 100644 --- a/base/dates/adjusters.jl +++ b/base/dates/adjusters.jl @@ -197,7 +197,10 @@ function DateTime(func::Function, y, m, d, h, mi, s; step::Period=Millisecond(1) end """ - Time(f::Function, h[, mi, s, ms, us]; step=Second(1), limit=10000) -> Time + Time(func::Function, h, mi=0; step::Period=Second(1), negate::Bool=false, limit::Int=10000) + Time(func::Function, h, mi, s; step::Period=Millisecond(1), negate::Bool=false, limit::Int=10000) + Time(func::Function, h, mi, s, ms; step::Period=Microsecond(1), negate::Bool=false, limit::Int=10000) + Time(func::Function, h, mi, s, ms, us; step::Period=Nanosecond(1), negate::Bool=false, limit::Int=10000) Create a `Time` through the adjuster API. The starting point will be constructed from the provided `h, mi, s, ms, us` arguments, and will be adjusted until `f::Function` returns `true`.