Skip to content

Commit

Permalink
News and compat annotation for #29754 (DateTime(::Date, ::Time) const…
Browse files Browse the repository at this point in the history
…ructor).
  • Loading branch information
fredrikekre committed Dec 3, 2018
1 parent 120ac66 commit 15a1a85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,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
-----------------------------
Expand Down
3 changes: 3 additions & 0 deletions stdlib/Dates/src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15a1a85

Please sign in to comment.