tomocafe / bash-boost

bash-boost is a set of library functions for bash, useful for both scripting and interactive use. It draws inspiration from the Boost C++ libraries.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add round-up offset feature to bb_now

tomocafe opened this issue · comments

Use ^ to denote rounding up to the nearest, e.g. +0d^ means the upcoming 00:00, +1h^ at 06:30 means 08:00, -1h^ at 06:30 means 06:00, etc.

^d, ^h can be shorthand for +0d^, +0h^ (etc.)