fs-set-times 0.18.0

Set filesystem timestamps
Documentation
use std::time::SystemTime;

/// A value for specifying a time.
#[derive(Debug)]
pub enum SystemTimeSpec {
    /// A value which always represents the current time, in symbolic form, so
    /// that even as time elapses, it continues to represent the current time.
    SymbolicNow,

    /// An absolute time value.
    Absolute(SystemTime),
}

impl From<SystemTime> for SystemTimeSpec {
    fn from(time: SystemTime) -> Self {
        Self::Absolute(time)
    }
}