Skip to main content

set_time

Function set_time 

Source
pub fn set_time<D: Datelike + Timelike>(time: D) -> Result<(), SetTimeError>
Expand description

Sets the system time to the specified time.

ยงErrors

  • SetTimeError::PermissionDenied if the operation fails due to insufficient permissions.
  • SetTimeError::InvalidTime if the provided time is invalid.