9

In Lemmy, we've removed the TopSixHours / TopXTime in favor of a more fine grained time_range_seconds field. You can see it in action in this PR

The problem is, we need a good UI picker for a time interval: IE things like 5 seconds, 4 days, 7 months, etc.

I've found a million libraries for specific date and time pickers, but not a single one for time intervals.

Does anyone know of any?

Thanks in advance.

you are viewing a single comment's thread
view the rest of the comments
[-] dessalines@lemmy.ml 1 points 11 months ago

I ended up figuring it out by using this simple pseudocode.

this post was submitted on 10 Sep 2025
9 points (100.0% liked)

JavaScript

2786 readers
1 users here now

founded 3 years ago
MODERATORS