The method looks quite useful and reusable in context of #1937 and #1936 addressing our time-handling. Also would de-duplicate it with `generic_modbus.c`, at least.