synd-support 0.4.0

shared support utilities for syndicationd crates
Documentation
1
2
3
4
5
6
7
8
use std::time::Duration;

pub type DurationError = humantime::DurationError;

/// Parse the string representation of a duration, such as "30s".
pub fn parse_duration(s: &str) -> Result<Duration, DurationError> {
    humantime::parse_duration(s)
}