sts

Crates.iosts
lib.rssts
version0.1.23
sourcesrc
created_at2023-08-18 13:22:06.362548
updated_at2024-06-13 10:40:09.6499
descriptionshortcut for timestamp
homepagehttps://github.com/i18n-site/rust/tree/main/sts
repositoryhttps://github.com/i18n-site/rust.git
max_upload_size
id947854
size10,093
(3tieto)

documentation

README

sts : shortcut for timestamp

→ tests/main.rs

use sts::{ms, sec};

#[test]
fn main() {
  dbg!(sec());
  dbg!(ms());
}

run tests :

→ out.txt

+ cargo test -- --nocapture
   Compiling libc v0.2.147
   Compiling once_cell v1.18.0
   Compiling coarsetime v0.1.23
   Compiling sts v0.0.3 (/Users/z/art/sts)
    Finished test [unoptimized + debuginfo] target(s) in 0.45s
     Running unittests src/lib.rs (target/debug/deps/sts-313e1f24663d0a18)
     Running tests/main.rs (target/debug/deps/main-7ad98a7b1f67db68)
[tests/main.rs:5] sec() = 1692364903
[tests/main.rs:6] ms() = 1692364903773
   Doc-tests sts
Commit count: 3

cargo fmt