Lines Matching refs:timestamp

134   time_t timestamp;    /* The time at which the line was archived */
205 static int _glh_write_timestamp(FILE *fp, time_t timestamp);
206 static int _glh_decode_timestamp(char *string, char **endp, time_t *timestamp);
496 lnode->timestamp = time(NULL);
1058 _glh_write_timestamp(fp, node->timestamp) ||
1108 * Write a timestamp to a given stdio stream, in the format
1113 * timestamp time_t The timestamp to be written.
1118 static int _glh_write_timestamp(FILE *fp, time_t timestamp)
1122 * Get the calendar components corresponding to the given timestamp.
1124 if(timestamp < 0 || (t = localtime(&timestamp)) == NULL) {
1166 time_t timestamp; /* The timestamp of the history line */
1213 * The next word must be a timestamp.
1215 if(_glh_decode_timestamp(lptr, &lptr, &timestamp)) {
1217 "Corrupt timestamp", fp);
1258 * Record the group and timestamp information along with the line.
1261 glh->list.tail->timestamp = timestamp;
1298 * Read a timestamp from a string.
1305 * timestamp time_t * The timestamp will be assigned to *t.
1310 static int _glh_decode_timestamp(char *string, char **endp, time_t *timestamp)
1318 char timestr[TSLEN+1]; /* The timestamp part of the string */
1322 * to read the timestamp.
1326 *timestamp = -1;
1330 * The timestamp is expected to be written in the form yyyymmddhhmmss.
1337 * Copy the timestamp out of the string.
1342 * Decode the timestamp.
1350 * Advance the string pointer over the successfully read timestamp.
1368 *timestamp = mktime(&t);
1533 struct tm *t = NULL; /* The broken time version of the timestamp */
1535 * Work out the calendar representation of the node timestamp.
1537 if(node->timestamp != (time_t) -1)
1538 t = localtime(&node->timestamp);
1949 * timestamp time_t * The timestamp of the line will be assigned to
1950 * *timestamp.
1956 unsigned *group, time_t *timestamp)
2006 * Does the caller want to know the timestamp of the line?
2008 if(timestamp)
2009 *timestamp = node->timestamp;