How do I round it to the next 5th interval?
# date Sat Oct 13 22:09:25 IST 2012 # date '+%H-%M' 22-09 the output should be 22-10
When the minute is 58 it should round to 00 and not 60 though.
closed as off topic by EEAA♦, Shane Madden♦, Ward, Michael Hampton♦, Magellan Oct 14 '12 at 21:42
Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.
You can tweak this:
How it works: