There is indeed no limit on the time, at some airports. If the airport terminal does shut down for the night, as they do at many smaller airports, then you'll be asked to leave when the terminal shuts down. However, many airports are always open, particularly larger international airports.