you can create a dictionary from file2, where the key is the prefix of the time you want, and the value is either first row, or all the rows matching this prefix.
then it's simply a matter of doing something like:
entries = file2Dict.get(file1Entry)
if entries:
print "First entry is %s" entries[0]