You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems to me that there are only two options for the last modification age display either 'x days x hours' or 'YYYY-MM-DD HH:MM:SS'
Is it possible to have the option to display the age as a relative time (rounded up or down, doesn't really matter which) so it will say one of 'x days', 'x weeks', 'x months' or 'x years'
The text was updated successfully, but these errors were encountered:
Guten Tag Jaspotn0612,
am Mittwoch, 11. November 2020 um 04:56 schrieben Sie:
Is it possible to have the option to display the age as a relative
time (rounded up or down, doesn't really matter which) so it will
say one of 'x days', 'x weeks', 'x months' or 'x years'
No, the format is hard-coded wherever it is used. Search the code for
"datetimeFormatDuration" to see that, and while it accepts some
options, callers simply hard-code things as necessary. There's no
option e.g. in the config to influence how to show the age everywhere
or alike.
include/utils.php
datetimeFormatDuration
Though, looking at the search results there seems to only be two
different formats used:
Multiple choices: Change the implementation of relative age to ALWAYS
round up to the next higher quantity like weeks, years etc.
Or add some new concepts describing the place WHERE an age is needed
and different formats of POSSIBLE ages. Formats might be something
like "absolute", "timestamp", "relativeDaysOnly",
"relativeLargestQuantity" or something like that. Callers would then
call some function telling about the place they need th duration for,
e.g. "fileDetails", "diff", "compare" etc., that function checks which
formnat to use using the config and the necessary format is
calculated.
It seems to me that there are only two options for the last modification age display either 'x days x hours' or 'YYYY-MM-DD HH:MM:SS'
Is it possible to have the option to display the age as a relative time (rounded up or down, doesn't really matter which) so it will say one of 'x days', 'x weeks', 'x months' or 'x years'
The text was updated successfully, but these errors were encountered: