canic-host 0.100.69

Host-side App build, Fleet install, deployment, and release-set library for Canic workspaces
Documentation
1
2
3
4
5
6
use std::time::{SystemTime, UNIX_EPOCH};

pub(super) fn current_unix_timestamp_label() -> Result<String, Box<dyn std::error::Error>> {
    let seconds = SystemTime::now().duration_since(UNIX_EPOCH)?.as_secs();
    Ok(format!("unix:{seconds}"))
}