mirror of
https://github.com/chronotope/chrono.git
synced 2025-10-02 15:26:12 +00:00
Deprecate timestamp_nanos
This commit is contained in:
parent
94ad32a40d
commit
a174b8afad
@ -274,6 +274,7 @@ impl<Tz: TimeZone> DateTime<Tz> {
|
|||||||
///
|
///
|
||||||
/// The dates that can be represented as nanoseconds are between 1677-09-21T00:12:44.0 and
|
/// The dates that can be represented as nanoseconds are between 1677-09-21T00:12:44.0 and
|
||||||
/// 2262-04-11T23:47:16.854775804.
|
/// 2262-04-11T23:47:16.854775804.
|
||||||
|
#[deprecated(since = "0.4.31", note = "use `timestamp_nanos_opt()` instead")]
|
||||||
#[inline]
|
#[inline]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn timestamp_nanos(&self) -> i64 {
|
pub fn timestamp_nanos(&self) -> i64 {
|
||||||
|
@ -460,6 +460,7 @@ impl NaiveDateTime {
|
|||||||
///
|
///
|
||||||
/// The dates that can be represented as nanoseconds are between 1677-09-21T00:12:44.0 and
|
/// The dates that can be represented as nanoseconds are between 1677-09-21T00:12:44.0 and
|
||||||
/// 2262-04-11T23:47:16.854775804.
|
/// 2262-04-11T23:47:16.854775804.
|
||||||
|
#[deprecated(since = "0.4.31", note = "use `timestamp_nanos_opt()` instead")]
|
||||||
#[inline]
|
#[inline]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn timestamp_nanos(&self) -> i64 {
|
pub fn timestamp_nanos(&self) -> i64 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user