uutils/coreutils · error

getting clock resolution not implemented (unsupported…

Error message

getting clock resolution not implemented (unsupported target)

What it means

Error "getting clock resolution not implemented (unsupported target)" thrown in uutils/coreutils.

Solutions

  1. Run on a platform where clock_getres is supported, or build without the resolution feature on this target.
  2. Treat the resolution as unavailable and skip options that require it.

When it happens

Trigger: Occurs when date is built for a target platform where querying clock resolution is not implemented.

Common situations: Running date on an unsupported or exotic target OS/architecture where the clock_getres equivalent is unavailable.


AI-assisted analysis of uutils/coreutils@85295bbf78 (2026-08-19). Data as JSON: /api/errors/c35a2719a10dddfb. Report an issue: GitHub.

Appendix: source

Thrown at src/uu/date/src/date.rs:1239

                    strtime::format("%Y-%m-%d", &result).unwrap_or_default()
                );
                let _ = writeln!(
                    err,
                    "date: parsed time part: {}",
                    strtime::format("%H:%M:%S", &result).unwrap_or_default()
                );

                // Show timezone information
                let _ = writeln!(err, "date: input timezone: system default");

                // Check if time component was specified, if not warn about midnight usage
                // Only warn for date-only inputs (no time specified), but not for epoch formats (@N)
                // or inputs that explicitly specify a time (containing ':')
                if dbg_opts.warn_midnight && !input_str.contains(':') && !input_str.contains('@') {
                    // Input likely didn't specify a time, so midnight was assumed
                    let time_str = strtime::format("%H:%M:%S", &result).unwrap_or_default();
                    if time_str == "00:00:00" {
                        let _ = writeln!(
                            err,
                            "date: warning: using midnight as starting time: 00:00:00"
                        );
                    }
                }
            }
            Ok(ParsedDateTime::InRange(result))
        }
        Ok(ParsedDateTime::Extended(date)) if allow_extended => Ok(ParsedDateTime::Extended(date)),
        Ok(ParsedDateTime::Extended(_)) => Err((
            input_str.into(),
            parse_datetime::ParseDateTimeError::InvalidInput,
        )),
        Err(e) => Err((input_str.into(), e)),
    }
}

#[cfg(not(any(unix, windows)))]

View on GitHub (pinned to 85295bbf78)