Removed methods deprecated in 0.2.

This commit is contained in:
Kang Seonghoon 2017-02-06 07:08:19 +09:00
parent c118a3985f
commit 36c45f2e02
2 changed files with 0 additions and 27 deletions

View File

@ -99,12 +99,6 @@ impl<Tz: TimeZone> DateTime<Tz> {
self.datetime.timestamp_subsec_nanos() self.datetime.timestamp_subsec_nanos()
} }
/// *Deprecated*: Same to `DateTime::timestamp`.
#[inline]
pub fn num_seconds_from_unix_epoch(&self) -> i64 {
self.timestamp()
}
/// Retrieves an associated offset from UTC. /// Retrieves an associated offset from UTC.
#[inline] #[inline]
pub fn offset<'a>(&'a self) -> &'a Tz::Offset { pub fn offset<'a>(&'a self) -> &'a Tz::Offset {

View File

@ -144,20 +144,6 @@ impl NaiveDateTime {
} }
} }
/// Same to [`NaiveDateTime::from_timestamp`](#method.from_timestamp).
#[inline]
#[deprecated(since = "0.2.0", note = "Renamed to `from_timestamp`")]
pub fn from_num_seconds_from_unix_epoch(secs: i64, nsecs: u32) -> NaiveDateTime {
NaiveDateTime::from_timestamp(secs, nsecs)
}
/// Same to [`NaiveDateTime::from_timestamp_opt`](#method.from_timestamp_opt).
#[inline]
#[deprecated(since = "0.2.0", note = "Renamed to `from_timestamp_opt`")]
pub fn from_num_seconds_from_unix_epoch_opt(secs: i64, nsecs: u32) -> Option<NaiveDateTime> {
NaiveDateTime::from_timestamp_opt(secs, nsecs)
}
/// Parses a string with the specified format string and returns a new `NaiveDateTime`. /// Parses a string with the specified format string and returns a new `NaiveDateTime`.
/// See the [`format::strftime` module](../../format/strftime/index.html) /// See the [`format::strftime` module](../../format/strftime/index.html)
/// on the supported escape sequences. /// on the supported escape sequences.
@ -341,13 +327,6 @@ impl NaiveDateTime {
self.time.nanosecond() self.time.nanosecond()
} }
/// Same to [`NaiveDateTime::timestamp`](#method.timestamp).
#[inline]
#[deprecated(since = "0.2.0", note = "Renamed to `timestamp`")]
pub fn num_seconds_from_unix_epoch(&self) -> i64 {
self.timestamp()
}
/// Adds given `Duration` to the current date and time. /// Adds given `Duration` to the current date and time.
/// ///
/// As a part of Chrono's [leap second handling](../time/index.html#leap-second-handling), /// As a part of Chrono's [leap second handling](../time/index.html#leap-second-handling),