RCSID("$Header$");
+/* Julian day of the UNIX epoch (January 1, 1970) */
+#define UNIX_EPOCH 2440588
+
extern void sqlglm(char buf[], int *, int *);
void fix_file(char *targetfile)
return s;
}
+time_t unixtime(char *timestring)
+{
+ time_t t;
+
+ t = strtol(timestring, ×tring, 10) - UNIX_EPOCH;
+ t = t * 24 + strtol(timestring, ×tring, 10);
+ t = t * 60 + strtol(timestring, ×tring, 10);
+ t = t * 60 + strtol(timestring, ×tring, 10);
+
+ return t;
+}
void db_error(int code)
{