(bug 48145) Added a "isValid" function for time.Time

The function returns whether the Object is representing any time at all. It will return false if
the value passed to the constructor has not been interpreted as time.

Change-Id: Ic16ecb54424e2e93ff7c72f30d107abd7b4ac814