Skip to content

Commit 1816ba2

Browse files
committed
News and compat annotation for #29754 (DateTime(::Date, ::Time) constructor).
1 parent 227bfb7 commit 1816ba2

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
@@ -62,6 +62,7 @@ Standard library changes
6262
* The process id is appended to malloc log files in order to track memory allocations of
6363
multiple processes ([#29969]).
6464
* `Base.julia_cmd` now propagates the `--inline=(yes|no)` flag ([#29858]).
65+
* New `DateTime(::Date, ::Time)` constructor ([#29754]).
6566

6667
Compiler/Runtime improvements
6768
-----------------------------

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)