Don't know if it's still the case, but park rangers (or whatever they are called) used to come round and lock the gates. There was a sign on the gates at the corner of Wishart, John Knox and Ladywell Streets with the times on it.
Source: Got told it was closing time and asked to leave by a parkie a few years ago.