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

Add option to display relative dates/times #1721

Open
dskrad opened this issue Apr 10, 2023 · 1 comment
Open

Add option to display relative dates/times #1721

dskrad opened this issue Apr 10, 2023 · 1 comment
Labels
enhancement New feature or request 📌 This can't go stale
Milestone

Comments

@dskrad
Copy link

dskrad commented Apr 10, 2023

Use Case/Motivation

I would like to be able to display entries with a relative or humanized date time.

Example Usage

jrnl --humanize -1

[1 day ago] I installed jrnl!!

Other Information

No response

@dskrad dskrad added 🆕 New! enhancement New feature or request labels Apr 10, 2023
@micahellison
Copy link
Member

Hi @dskrad, thanks for filing this suggestion. I can see the use of this.

I think this would probably be better as a configuration key rather than in the command line. It could still be accessed via config-override. And I think "relative" would be a more specific term than "humanize" (which could mean a lot of other things).

The config key should be something like display_timeformat or timeformat_display. It should have the same behavior as timeformat except for two things: 1) it's only used for displaying the time (rather than storing) and 2) if it's set to a value like "relative" instead of a time format string, it shows the relative time format, such as "1 day ago" or "5 minutes ago".

@micahellison micahellison added 📌 This can't go stale and removed 🆕 New! labels Apr 22, 2023
@micahellison micahellison added this to the Backlog milestone Apr 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 📌 This can't go stale
Projects
None yet
Development

No branches or pull requests

2 participants