[][src]Function timeturner::run

pub fn run(
    input: &Option<String>,
    output_mode: &OutputMode
) -> Result<(), &'static str>

Takes an optional input and prints conversions to different date-time formats. If an input string is not given, then now is used. If the input format cannot be handled, a string suitable for display to the user is given as the error result.

Errors

Will return an error string if input cannot be parsed to a date.