From b878c5017ff23d20234fe44047fb0fff0e617859 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Fri, 30 Nov 2018 01:43:10 +0100 Subject: [PATCH] News and compat annotation for #29754 (DateTime(::Date, ::Time) constructor). --- NEWS.md | 1 + stdlib/Dates/src/types.jl | 3 +++ 2 files changed, 4 insertions(+) diff --git a/NEWS.md b/NEWS.md index f4e28ef122d90..1310d1263463f 100644 --- a/NEWS.md +++ b/NEWS.md @@ -50,6 +50,7 @@ Standard library changes * The process id is appended to malloc log files in order to track memory allocations of multiple processes ([#29969]). * `Base.julia_cmd` now propagates the `--inline=(yes|no)` flag ([#29858]). + * New `DateTime(::Date, ::Time)` constructor ([#29754]). Compiler/Runtime improvements ----------------------------- diff --git a/stdlib/Dates/src/types.jl b/stdlib/Dates/src/types.jl index 24b3a6ebad1dc..a16091022c4c0 100644 --- a/stdlib/Dates/src/types.jl +++ b/stdlib/Dates/src/types.jl @@ -318,6 +318,9 @@ Construct a `DateTime` type by `Date` and `Time`. Non-zero microseconds or nanoseconds in the `Time` type will result in an `InexactError`. +!!! compat "Julia 1.1" + This function requires at least Julia 1.1. + ```jldoctest julia> d = Date(2018, 1, 1) 2018-01-01