In the header for the Time object, it says this:
//==============================================================================
/** Returns the last modification time of this file.
@returns the time, or an invalid time if the file doesn't exist.
@see setLastModificationTime, getLastAccessTime, getCreationTime
*/
Time getLastModificationTime() const;
But I don’t see any place where we can check if the time returned is invalid. What exactly is an “invalid time”?