use std::time::{SystemTime, UNIX_EPOCH};
// Read the current host clock as a unix timestamp for install state.
pub(super) fn current_unix_secs() -> Result<u64, Box<dyn std::error::Error>> {
Ok(SystemTime::now().duration_since(UNIX_EPOCH)?.as_secs())
}
pub(super) fn current_unix_timestamp_label() -> Result<String, Box<dyn std::error::Error>> {
Ok(format!("unix:{}", current_unix_secs()?))
}