//IsValid checks whether the time value is valid or not
IsValid checks whether the time value is valid or not
// IsValid checks whether the time value is valid or not
func (tv *TimeValue) IsValid() bool {
	if tv.Error != nil {
		return false
	}
	if tv.Time != nil {
		return true
	}
	t, err := time.Parse(time.RFC3339, tv.Value)
	if err != nil {
		tv.Error = err
		return false
	}
	tv.Time = &t
	return true
}
func ( tv * TimeValue ) IsValid ( ) bool { if tv . Error != nil { return false } if tv . Time != nil { return true } t , err := time . Parse ( time . RFC3339 , tv . Value ) if err != nil { tv . Error = err return false } tv . Time = & t return true }
IsValid checks whether the time value is valid or not
IsValid checks whether the time value is valid or not
/*
	 * If an error exists or parsing failed we will return false
	 * If time exists or parsing was successful we will return true
	 */