Adds function to read time from fields