diff options
| author | Fuwn <[email protected]> | 2021-07-03 13:15:37 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-07-03 13:15:37 +0000 |
| commit | 6153a3e5ae3eff1c73ba47c310717d879b4ca1c5 (patch) | |
| tree | e09da20c4b0ed1d2f218d6dfac21496f787ba4c1 /crates/whirl_common/src/system.rs | |
| parent | test(whirl_common): add criterion benchmarks (diff) | |
| download | whirl-6153a3e5ae3eff1c73ba47c310717d879b4ca1c5.tar.xz whirl-6153a3e5ae3eff1c73ba47c310717d879b4ca1c5.zip | |
refactor(whirl_common): rename `seconds_to_hrtime` to `unixts_to_hrtime`
Diffstat (limited to 'crates/whirl_common/src/system.rs')
| -rw-r--r-- | crates/whirl_common/src/system.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/whirl_common/src/system.rs b/crates/whirl_common/src/system.rs index c4b203c..72f6a33 100644 --- a/crates/whirl_common/src/system.rs +++ b/crates/whirl_common/src/system.rs @@ -18,7 +18,7 @@ fn make_parts(t: usize, steps: &[usize], mut accum: Vec<usize>) -> Vec<usize> { /// Convert a Unix (Epoch) Timestamp to a human-readable format. #[must_use] -pub fn seconds_to_hrtime(seconds: usize) -> String { +pub fn unixts_to_hrtime(seconds: usize) -> String { let word = ["week", "day", "hour", "min", "sec"]; make_parts(seconds, &[WEEK, DAY, HOUR, MIN, 1], Vec::new()) |