Skip to content

Commit b878c50

Browse files
committed
News and compat annotation for #29754 (DateTime(::Date, ::Time) constructor).
1 parent 4dff8f4 commit b878c50

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

NEWS.md

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Standard library changes
5050
* The process id is appended to malloc log files in order to track memory allocations of
5151
multiple processes ([#29969]).
5252
* `Base.julia_cmd` now propagates the `--inline=(yes|no)` flag ([#29858]).
53+
* New `DateTime(::Date, ::Time)` constructor ([#29754]).
5354

5455
Compiler/Runtime improvements
5556
-----------------------------

stdlib/Dates/src/types.jl

+3
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,9 @@ Construct a `DateTime` type by `Date` and `Time`.
318318
Non-zero microseconds or nanoseconds in the `Time` type will result in an
319319
`InexactError`.
320320
321+
!!! compat "Julia 1.1"
322+
This function requires at least Julia 1.1.
323+
321324
```jldoctest
322325
julia> d = Date(2018, 1, 1)
323326
2018-01-01

0 commit comments

Comments
 (0)