▲ 9 ▼ Does anyone know of a good time interval / range library? (github.com) submitted 1 year ago by dessalines@lemmy.ml to c/javascript@programming.dev 2 comments fedilink hide all child comments 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.
[–] dessalines@lemmy.ml [S] 1 point 1 year ago I ended up figuring it out by using this simple pseudocode. permalink fedilink source parent