Skip to content

date: implement --resolution #6143

@BenWiederhake

Description

@BenWiederhake

This sounds like a feature that people probably use:

$ date --resolution
0.000000001
$ cargo run date --resolution
error: unexpected argument '--resolution' found

  tip: a similar argument exists: '--version'

Usage: target/debug/coreutils date [OPTION]... [+FORMAT]...
       target/debug/coreutils date [OPTION]... [MMDDhhmm[[CC]YY][.ss]]

For more information, try '--help'.
[$? = 1]

When you implement it, please make sure that you set overrides_with, so that date --resolution --resolution also works :)

Found while working on #6142

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions