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: Make -d accept more complex date format #114

Open
GrayJack opened this issue Mar 2, 2020 · 0 comments
Open

Touch: Make -d accept more complex date format #114

GrayJack opened this issue Mar 2, 2020 · 0 comments
Labels
A-tool Area: Binary tool C-enhancement Category: An issue proposing an enhancement or a Pull Request with one.

Comments

@GrayJack
Copy link
Owner

GrayJack commented Mar 2, 2020

Is your feature request related to a problem? Please describe.
All other implementation accept more complex date strings, right now this implementation is YYYY-MM-DD hh:mm:ss]

Describe the solution you'd like
All other implementation accept YYYY-MM-DDThh:mm:SS[.frac][tz] where

  • YYYY: At least four decimal digits representing the year.
  • MM, DD, hh, mm, SS: As with -t time.
  • T: The letter T or a space is the time designator.
  • .frac: An optional fraction, consisting of a period or a comma followed by one or more digits. The number of significant digits depends on the kernel configuration and the filesystem, and may be zero.
  • tz: An optional letter Z indicating the time is in UTC. Otherwise, the time is assumed to be in local time. Local time is affected by the value of the TZ environment variable.

Describe alternatives you've considered
Let as is, but break compatibility with other coreutils touch tool.

@GrayJack GrayJack added the C-enhancement Category: An issue proposing an enhancement or a Pull Request with one. label Mar 2, 2020
@GrayJack GrayJack added the A-tool Area: Binary tool label Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tool Area: Binary tool C-enhancement Category: An issue proposing an enhancement or a Pull Request with one.
Projects
None yet
Development

No branches or pull requests

1 participant