Skip to content

Commit 3b5aeb7

Browse files
committed
update
1 parent f34bc25 commit 3b5aeb7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/table_collection.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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(&timestamp).unwrap();
1081+
/// let timestamp_string = chrono::DateTime::<chrono::Utc>::from_str(&timestamp).unwrap();
10821082
///
10831083
/// // Provenance transfers to the tree sequences
10841084
/// let treeseq = tables.tree_sequence(tskit::TreeSequenceFlags::BUILD_INDEXES).unwrap();

src/trees/treeseq.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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(&timestamp).unwrap();
456+
/// let dt_utc = chrono::DateTime::<chrono::Utc>::from_str(&timestamp).unwrap();
457457
/// println!("utc = {}", dt_utc);
458458
/// # }
459459
/// ```

0 commit comments

Comments
 (0)