Skip to content

[feature request] set with relative arguments to file timestamp #3

@skymatr1x

Description

@skymatr1x

plus/add and minus/subtract timestamp of specified file attribute, with various units: day, hr, min, sec etc.

examples with file.txt existing mtime being "2001-01-01T01:01:01"

# changed to: "2001-01-03T01:01:01"
mactime set file.txt -m plus 2day

# changed to: "2001-01-01T00:01:01"
mactime set file.txt -m minus 1hr

# changed to: "2001-01-02T13:01:01"
mactime set file.txt -m plus 36hr

# changed to: "2001-01-01T01:31:01"
mactime set file.txt -m plus 30min

# changed to: "2001-01-01T01:00:51"
mactime set file.txt -m minus 10sec

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions