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

Support Absolute and Relative Date Formats Together #1118

Open
AkramiPro opened this issue Feb 1, 2025 · 0 comments
Open

Support Absolute and Relative Date Formats Together #1118

AkramiPro opened this issue Feb 1, 2025 · 0 comments

Comments

@AkramiPro
Copy link

Currently, lsd only allows setting the date format to either an absolute format (e.g., +%Y/%m/%d %H:%M:%S) or a relative format (relative), but not both at the same time. It would be useful to display both formats together.

Expected Behavior

A way to configure lsd to show both absolute and relative dates, such as:

2025/01/31 22:10:23 (5 minutes ago)

Suggested Implementation

  • Allow specifying both formats, for example:
    date: ['+%Y/%m/%d %H:%M:%S', 'relative']
    
  • Or introduce a new option, like:
    date: '+%Y/%m/%d %H:%M:%S'
    show_relative: true
    

Use Case

This would provide both precise timestamps and an easy-to-read relative time, improving usability.

Would this be possible to implement?
Thanks for considering it 🙏

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

1 participant