pub fn now_timestamp() -> StringExpand description
Get the current timestamp in YYYY-MM-DD HH:MM:SS format.
use rusty_stack::installers::common::benchmark_common::now_timestamp;
let ts = now_timestamp();
assert!(ts.len() == 19);
assert!(ts.starts_with("20"));
assert_eq!(&ts[4..5], "-");
assert_eq!(&ts[13..14], ":");ยงValidation
- VAL-INFRA-014:
[YYYY-MM-DD HH:MM:SS]prefix format