stop_watch_timer icon indicating copy to clipboard operation
stop_watch_timer copied to clipboard

[Suggestion] Change the behavior of the static method: getDisplayTime

Open ArturAssisComp opened this issue 1 year ago • 2 comments

The parameters RightBreak can only be used as break elements. If the user wants to use them as suffix, it is not necessarily possible. For example, if I want "HH hours" or something like that, it is not possible, it only returns "HH" even if hoursRightBreak is set to " hours". Maybe adding new parameters: hourSuffix, minuteSuffix, secondSuffix, and milliSecondSuffix and making them behave as lasting even if the next time element is not displayed would make it clearer and more flexible. Those who want to use them as right breaks, could do that, and those who want to use them as suffixes could do too.

ArturAssisComp avatar Jun 15 '24 01:06 ArturAssisComp

IMO the timer should receive a DateTimeFormat and format the display accordingly. It immediately solves all the issues with display.

I had to fork the lib because for my application, I do not want minute padding.

@hukusuke1007 - please look into this. I could submit a pull request if this is something you are willing to add to the package.

inteist avatar May 14 '25 18:05 inteist

@inteist I will add it, please Request.

hukusuke1007 avatar May 14 '25 23:05 hukusuke1007