Decode a time_t value.
pointer to a variable to store the value in
file to read from
0 on success, -1 on error.