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

[Feature Request] Support days for --since #24

Open
aoyama-val opened this issue Nov 2, 2020 · 1 comment
Open

[Feature Request] Support days for --since #24

aoyama-val opened this issue Nov 2, 2020 · 1 comment

Comments

@aoyama-val
Copy link

It would be great if we could specify like:

utern --since 3d
(since 3 days ago)
@sakamossan
Copy link

utern uses time.ParseDuration internally.

utern/config/config.go

Lines 42 to 43 in 448ee83

since := c.String("since")
startDuration, err := time.ParseDuration(since)

And time.ParseDuration seems to have a policy of not accepting days.

So for now, you can use options like 72h instead of 3d.

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

No branches or pull requests

2 participants