Skip to content

Using relative specifier with "at time" should fail #196

@cakebaker

Description

@cakebaker

While going through the examples in #84 I noticed that uutils date accepts relative specifiers like "yesterday" with "at time" whereas GNU date fails. Some examples:

$ date -d "today at 10:00"
date: invalid date 'today at 10:00'
$ date -d "tomorrow at 8pm"
date: invalid date 'tomorrow at 8pm'
$ date -d "yesterday at 8"
date: invalid date 'yesterday at 8'

$ cargo run -q date -d "today at 10:00"
Mon Aug  4 16:00:00 CEST 2025
$ cargo run -q date -d "tomorrow at 8pm"
Wed Aug  6 02:00:00 CEST 2025
$ cargo run -q date -d "yesterday at 8"
Mon Dec 31 04:34:08 LMT 0007

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions