The length that a diesel generator can run for depends on the size of the fuel tank and the load on the generator. Most diesel generators can last for a full workday, if not slightly longer.