Hacker News new | ask | show | jobs
by tokenadult 4712 days ago
Is it hard to implement showing both? I like seeing both.
3 comments

Both are not hard to implement. But exact timestamp has a timezone problem, while 'xx ago' is universal.
> Both are not hard to implement. But exact timestamp has a timezone problem

Specify a timezone in the timestamp. UTC is probably fine, especially if you are doing both, in which case, the main value of timestamps (AFAICT) is to compare the relative times of other posts that are hard to determine from the prose descriptions.

Make the timestamp relative to the viewer?
(serious question) How?
Moment.js is pretty useful if you do it client side.
Brilliant! I've been using timeago (http://timeago.yarp.com), but Moment.js (especially with its timezone support) may solve some of my problems better.
Set it up so the date is clickable and clicking it toggles the mode. Also save the current mode to a preferences json object in localstorage for persistence.
Obviously it isn't difficult to implement, but it does make the date take up a potentially unreasonable amount of design real estate.