File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1047,7 +1047,7 @@ impl TableCollection {
10471047 /// specification.
10481048 /// This formatting approach has been the most straightforward method
10491049 /// for supporting round trips to/from a [`crate::provenance::ProvenanceTable`].
1050- /// The implementations used here use the [`humantime `](https://docs.rs/humantime /latest/humantime /) crate.
1050+ /// The implementations used here use the [`chrono `](https://docs.rs/chrono /latest/chrono /) crate.
10511051 ///
10521052 /// # Parameters
10531053 ///
@@ -1076,9 +1076,9 @@ impl TableCollection {
10761076 /// let timestamp = prov_ref.timestamp(0).unwrap();
10771077 /// assert_eq!(timestamp, row_0.timestamp);
10781078 ///
1079- /// // You can get the `humantime::Timestamp ` object back from the `String`:
1079+ /// // You can get the `chrono ` object back from the `String`:
10801080 /// use core::str::FromStr;
1081- /// let timestamp_string = humantime::Timestamp ::from_str(×tamp).unwrap();
1081+ /// let timestamp_string = chrono::DateTime::<chrono::Utc> ::from_str(×tamp).unwrap();
10821082 ///
10831083 /// // Provenance transfers to the tree sequences
10841084 /// let treeseq = tables.tree_sequence(tskit::TreeSequenceFlags::BUILD_INDEXES).unwrap();
Original file line number Diff line number Diff line change @@ -431,7 +431,7 @@ impl TreeSequence {
431431 /// specification.
432432 /// This formatting approach has been the most straightforward method
433433 /// for supporting round trips to/from a [`crate::provenance::ProvenanceTable`].
434- /// The implementations used here use the [`humantime `](https://docs.rs/humantime /latest/humantime /) crate.
434+ /// The implementations used here use the [`chrono `](https://docs.rs/chrono /latest/chrono /) crate.
435435 ///
436436 /// # Parameters
437437 ///
@@ -453,7 +453,7 @@ impl TreeSequence {
453453 /// let timestamp = prov_ref.timestamp(0).unwrap();
454454 /// assert_eq!(timestamp, row_0.timestamp);
455455 /// use core::str::FromStr;
456- /// let dt_utc = humantime::Timestamp ::from_str(×tamp).unwrap();
456+ /// let dt_utc = chrono::DateTime::<chrono::Utc> ::from_str(×tamp).unwrap();
457457 /// println!("utc = {}", dt_utc);
458458 /// # }
459459 /// ```
You can’t perform that action at this time.
0 commit comments