aboutsummaryrefslogtreecommitdiff
path: root/crates/whirl_common/src/system.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/whirl_common/src/system.rs')
-rw-r--r--crates/whirl_common/src/system.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/whirl_common/src/system.rs b/crates/whirl_common/src/system.rs
index 7a823a0..3b4806b 100644
--- a/crates/whirl_common/src/system.rs
+++ b/crates/whirl_common/src/system.rs
@@ -16,6 +16,7 @@ fn make_parts(t: usize, steps: &[usize], mut accum: Vec<usize>) -> Vec<usize> {
}
}
+/// Convert a Unix (Epoch) Timestamp to a human-readable format.
pub fn seconds_to_hrtime(seconds: usize) -> String {
let word = ["week", "day", "hour", "min", "sec"];