Skip to content

date: Does not accept decimal offsets #8618

@waveform80

Description

@waveform80

Discovered while testing the motd scripts in Ubuntu questing under rust-coreutils. Under gnu-coreutils:

$ gnudate -d "now - 20 seconds" +%s
1757632916
$ gnudate -d "now - 20.1 seconds" +%s
1757632918

Under rust-coreutils:

$ date -d "now - 20 seconds" +%s
1757632958
$ date -d "now - 20.1 seconds" +%s
date: invalid date 'now - 20.1 seconds'

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