You can record up to 10 minutes in the free version of Hi-Q MP3 Voice Recorder.
In the full version, you can record as long as you like it. It only depends on how big the free space on your external storage (SD card or USB storage).
For example, on a device with 16 GB free storage space, with the default bit rate (128 kbps), you can record for 270 hours in total.
Some filesystems (especially FAT32, which is used in most phone models for external storage) have a limit of 2 GB size for a single file. In that case, you can still record for more than 30 hours in a single run.