Skip to main content

Module time

Module time 

Source
Expand description

This module provides parse_duration, which parses duration in reaction’s format (ie. 6h, 3 days)

Like in those reaction core settings:

Functions§

parse_duration
Parses the &str argument as a Duration Returns Ok(Duration) if successful, or Err(String).