+/** This function updates the timestamp of the header.
+
+ \param t The time_t value giving the wanted timestamp
+
+ \retval 0 on success
+ \retval nonzero on errors
+*/
+int gom_header_update_timestamp(time_t t)
+{
+ int result = 0;
+ struct tm *tm_ptr = localtime(&t);
+ result |= update_date(&gom_header.date, tm_ptr);
+ result |= update_time(&gom_header.time, tm_ptr);
+ return result;
+}
+