Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

touch: add support for some relative times #4193

Merged
merged 1 commit into from
Dec 3, 2022

Conversation

jfinkels
Copy link
Collaborator

For example,

$ touch -d "+1 days" f

It doesn't support all relative times. For example, "+1days" and "11:00 tomorrow" and many more still don't work.

Fixes #3964.

@jfinkels jfinkels force-pushed the touch-relative-time branch from a80cd95 to f4088d5 Compare November 28, 2022 05:17
For example,

    $ touch -d +1 days

Fixes uutils#3964.
@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/tail-2/inotify-dir-recreate. tests/tail-2/inotify-dir-recreate is passing on 'main'. Maybe you have to rebase?

@tertsdiepraam
Copy link
Member

tertsdiepraam commented Nov 30, 2022

I think it's about time that we extract this to uucore, since it can be used in date as well. We could also make an issue for that after this PR of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

touch -d now doesn't work
3 participants