forgejo/modules/util
René Schaar 6859b69198
Refactor SecToTime() function (#18863)
- Add helper method to reduce redundancy
- Expand the scope from displaying days to years
- Reduce irrelevance by not displaying small units (hours, minutes, seconds) when bigger ones apply (years)
2022-02-28 23:57:20 +01:00
..
compare.go
copy.go
io.go
net.go
paginate.go
paginate_test.go
path.go
path_test.go
remove.go
sanitize.go
sanitize_test.go
sec_to_time.go Refactor SecToTime() function (#18863) 2022-02-28 23:57:20 +01:00
sec_to_time_test.go Refactor SecToTime() function (#18863) 2022-02-28 23:57:20 +01:00
shellquote.go
shellquote_test.go
timer.go
truncate.go
truncate_test.go
url.go
util.go
util_test.go