diff --git a/CHANGELOG.md b/CHANGELOG.md index d92797e587..1cfecebadd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ Versions with only mechanical changes will be omitted from the following list. * Implement `DurationRound` for `NaiveDateTime` * Add `DateTime::from_local()` to construct from given local date and time (#572) * Correct build for wasm32-unknown-emscripten target (#568) +* Change `Local::now()` and `Utc::now()` documentation from "current date" to "current date and time" (#647) ## 0.4.19 diff --git a/src/offset/local.rs b/src/offset/local.rs index 8ee5848b5e..deb3d681fe 100644 --- a/src/offset/local.rs +++ b/src/offset/local.rs @@ -96,13 +96,13 @@ impl Local { Local::now().date() } - /// Returns a `DateTime` which corresponds to the current date. + /// Returns a `DateTime` which corresponds to the current date and time. #[cfg(not(all(target_arch = "wasm32", not(target_os = "wasi"), feature = "wasmbind")))] pub fn now() -> DateTime { tm_to_datetime(Timespec::now().local()) } - /// Returns a `DateTime` which corresponds to the current date. + /// Returns a `DateTime` which corresponds to the current date and time. #[cfg(all(target_arch = "wasm32", not(target_os = "wasi"), feature = "wasmbind"))] pub fn now() -> DateTime { use super::Utc; diff --git a/src/offset/utc.rs b/src/offset/utc.rs index 3be9bfb59a..b094e57c4d 100644 --- a/src/offset/utc.rs +++ b/src/offset/utc.rs @@ -42,7 +42,7 @@ impl Utc { Utc::now().date() } - /// Returns a `DateTime` which corresponds to the current date. + /// Returns a `DateTime` which corresponds to the current date and time. #[cfg(not(all(target_arch = "wasm32", not(target_os = "wasi"), feature = "wasmbind")))] pub fn now() -> DateTime { let now =