sdf-common 0.14.0

Stateful Dataflow constants and common utils
Documentation
/// Render filters
pub mod render;

pub mod constants;

pub mod display;

#[cfg(feature = "version")]
pub mod version;

pub const LATEST_STABLE_DATAFLOW: &str = constants::DATAFLOW_STABLE_VERSION;

/// Returns the current Unix time in seconds.
/// Returns `None` if the system time is before the Unix epoch.
pub fn current_unix_time_secs() -> Option<u64> {
    Some(
        std::time::SystemTime::now()
            .duration_since(std::time::UNIX_EPOCH)
            .ok()?
            .as_secs(),
    )
}