Skip to content

Commit

Permalink
Deprecate timestamp_nanos
Browse files Browse the repository at this point in the history
  • Loading branch information
pitdicker committed Sep 8, 2023
1 parent 6d6a862 commit 35e6ac5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/datetime/mod.rs
Expand Up @@ -262,6 +262,7 @@ impl<Tz: TimeZone> DateTime<Tz> {
///
/// The dates that can be represented as nanoseconds are between 1677-09-21T00:12:44.0 and
/// 2262-04-11T23:47:16.854775804.
#[deprecated(since = "0.4.31", note = "use `timestamp_nanos_opt()` instead")]
#[inline]
#[must_use]
pub fn timestamp_nanos(&self) -> i64 {
Expand Down
1 change: 1 addition & 0 deletions src/naive/datetime/mod.rs
Expand Up @@ -460,6 +460,7 @@ impl NaiveDateTime {
///
/// The dates that can be represented as nanoseconds are between 1677-09-21T00:12:44.0 and
/// 2262-04-11T23:47:16.854775804.
#[deprecated(since = "0.4.31", note = "use `timestamp_nanos_opt()` instead")]
#[inline]
#[must_use]
pub fn timestamp_nanos(&self) -> i64 {
Expand Down

0 comments on commit 35e6ac5

Please sign in to comment.