Function nix::time::clock_settime
pub fn clock_settime(clock_id: ClockId, timespec: TimeSpec) -> Result<()>
The portability is definied by:
#[cfg(not(any(target_os = "macos", target_os = "ios",
all(not(any(target_env = "uclibc", target_env = "newlibc")),
any(target_os = "redox", target_os = "hermit",),),)))]
Documentation
Set the time of the specified clock, (see clock_settime(2)).