Header file for accessing components globally in library
As noted by commenters, you will get multiple definition errors if you try to include this header in multiple translation units. The functions must be marked inline, or the header file reduced to the declarations, with the definitions placed in a separate source file.
The std::string format argument is copied unnecessarily as it is passed by value. It should be passed by const&amp; instead. (Or replaced with std::string_view).
The difference between all these functions is the format string. As such, we don't really need the functions at all. We can define the format strings as constants, and the user can pass the one they need to get_chrono.
get_chrono is probably not the best name for the function. Maybe format_time_now, or format_time.
The function would be much less restrictive if the time were passed as an argument. It can then be used for formatting other times than now.
Note also that in the original code, if we wanted to call get_second and get_minute for one point in time (say for some custom output format), we can't! Because now will have changed between the calls, and we might end up with incorrect output.