Skip to content

Commit

Permalink
Deprecated TimeZone::datetime_from_str
Browse files Browse the repository at this point in the history
  • Loading branch information
pitdicker committed Sep 3, 2023
1 parent f3db375 commit 3f24903
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/offset/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ pub trait TimeZone: Sized + Clone {
///
/// See also [`DateTime::parse_from_str`] which gives a [`DateTime`] with
/// parsed [`FixedOffset`].
#[deprecated(since = "0.4.29", note = "use `DateTime::parse_from_str` instead")]
fn datetime_from_str(&self, s: &str, fmt: &str) -> ParseResult<DateTime<Self>> {
let mut parsed = Parsed::new();
parse(&mut parsed, s, StrftimeItems::new(fmt))?;
Expand Down

0 comments on commit 3f24903

Please sign in to comment.