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

Display absolute time instead of relative time #90

Closed
erlehmann opened this issue Feb 16, 2016 · 1 comment
Closed

Display absolute time instead of relative time #90

erlehmann opened this issue Feb 16, 2016 · 1 comment
Milestone

Comments

@erlehmann
Copy link

The relative time format displayed by twtxt (“2 hours ago”) makes it harder to comprehend the timeline.

First, it is relative not to the current time (when the user is reading the text), but to the time when the command was invoked. If one invokes the command and reads the output later, the information is no longer accurate. This also means one cannot use the twtxt client to generate a web page with a timeline unless it is regenerated very frequently.

Second, it has a very low resolution – I now have three entries in my timeline that have a time of “9 days ago”. I have no way to find out if that was 9 days ago in the morning or 9 days ago in the evening with the current display.

I therefore propose displaying the time always in an absolute form, taking the user's timezone into account. This could also eliminate the dependency on the “humanize“ library, which twtxt uses to turn the timestamps into the fuzzy human readable times shown right now.

@timofurrer
Copy link
Contributor

👍 I like that.
Maybe we can make it configurable if someone really want to use the relative times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants