Index: trunk/Ohana/src/getstar/Makefile
===================================================================
--- trunk/Ohana/src/getstar/Makefile	(revision 39997)
+++ trunk/Ohana/src/getstar/Makefile	(revision 39998)
@@ -53,4 +53,5 @@
 $(SRC)/Shutdown.$(ARCH).o	         \
 $(SRC)/SetSignals.$(ARCH).o	         \
+$(SRC)/parse_time.$(ARCH).o          \
 $(SRC)/ReadImageFiles.$(ARCH).o          \
 $(SRC)/ReadImageHeader.$(ARCH).o         \
@@ -70,4 +71,5 @@
 $(SRC)/Shutdown.$(ARCH).o	         \
 $(SRC)/SetSignals.$(ARCH).o	         \
+$(SRC)/parse_time.$(ARCH).o          \
 $(SRC)/ReadImageFiles.$(ARCH).o          \
 $(SRC)/ReadImageHeader.$(ARCH).o         \
Index: trunk/Ohana/src/getstar/include/dvoImageOverlaps.h
===================================================================
--- trunk/Ohana/src/getstar/include/dvoImageOverlaps.h	(revision 39997)
+++ trunk/Ohana/src/getstar/include/dvoImageOverlaps.h	(revision 39998)
@@ -1,6 +1,6 @@
 # include <ohana.h>
 # include <dvo.h>
+# include <ReadImageFiles.h>
 # include <signal.h>
-# include <glob.h>
 
 enum {NONE, SIMPLE_CMP, SIMPLE_CMF, SIMPLE_MEF, MOSAIC_CMP, MOSAIC_CMF, MOSAIC_MEF, MOSAIC_PHU};
@@ -29,6 +29,4 @@
 int  SetSignals       PROTO((void));
 
-Image *ReadImageFiles (char *filename, off_t *Nimages);
-int ReadImageHeader (Header *header, Image *image);
 off_t *MatchImage (Image *dbImages, off_t NdbImages, Image *image, off_t *Nmatch);
 int ListImageOverlaps (Image *dbImages, Image *image, off_t *matches, off_t Nmatches);
Index: trunk/Ohana/src/getstar/include/dvoImagesAtCoords.h
===================================================================
--- trunk/Ohana/src/getstar/include/dvoImagesAtCoords.h	(revision 39997)
+++ trunk/Ohana/src/getstar/include/dvoImagesAtCoords.h	(revision 39998)
@@ -1,6 +1,6 @@
 # include <ohana.h>
 # include <dvo.h>
+# include <ReadImageFiles.h>
 # include <signal.h>
-# include <glob.h>
 
 enum {NONE, SIMPLE_CMP, SIMPLE_CMF, SIMPLE_MEF, MOSAIC_CMP, MOSAIC_CMF, MOSAIC_MEF, MOSAIC_PHU};
@@ -51,7 +51,4 @@
 int  SetSignals       PROTO((void));
 
-Image *ReadImageFiles (char *filename, off_t *Nimages);
-int ReadImageHeader (Header *header, Image *image);
 off_t MatchCoords (Image *dbImages, off_t NdbImages, Point *points, int Npoints);
-
 int GetFileMode (Header *header);
Index: trunk/Ohana/src/getstar/src/ConfigInit_coords.c
===================================================================
--- trunk/Ohana/src/getstar/src/ConfigInit_coords.c	(revision 39997)
+++ trunk/Ohana/src/getstar/src/ConfigInit_coords.c	(revision 39998)
@@ -27,4 +27,18 @@
   sprintf (ImageCat, "%s/Images.dat", CATDIR);
 
+  /* used by parse_time to find time-related keywords */
+  strcpy (DateKeyword, "NONE");
+  strcpy (DateMode, "NONE");
+  strcpy (UTKeyword, "NONE");
+  strcpy (JDKeyword, "NONE");
+  strcpy (MJDKeyword, "NONE");
+  ScanConfig (config, "DATE-KEYWORD",           "%s",  0, DateKeyword);
+  ScanConfig (config, "DATE-MODE",              "%s",  0, DateMode);
+  ScanConfig (config, "UT-KEYWORD",             "%s",  0, UTKeyword);
+  ScanConfig (config, "MJD-KEYWORD",            "%s",  0, MJDKeyword);
+  ScanConfig (config, "JD-KEYWORD",             "%s",  0, JDKeyword);
+
+  ScanConfig (config, "EXPTIME-KEYWORD",        "%s",  0, ExptimeKeyword);
+
   if (*CATMODE == 0) strcpy (CATMODE, "RAW");
   if (*CATFORMAT == 0) strcpy (CATFORMAT, "ELIXIR");
Index: trunk/Ohana/src/getstar/src/ConfigInit_overlaps.c
===================================================================
--- trunk/Ohana/src/getstar/src/ConfigInit_overlaps.c	(revision 39997)
+++ trunk/Ohana/src/getstar/src/ConfigInit_overlaps.c	(revision 39998)
@@ -27,4 +27,18 @@
   sprintf (ImageCat, "%s/Images.dat", CATDIR);
 
+  /* used by parse_time to find time-related keywords */
+  strcpy (DateKeyword, "NONE");
+  strcpy (DateMode, "NONE");
+  strcpy (UTKeyword, "NONE");
+  strcpy (JDKeyword, "NONE");
+  strcpy (MJDKeyword, "NONE");
+  ScanConfig (config, "DATE-KEYWORD",           "%s",  0, DateKeyword);
+  ScanConfig (config, "DATE-MODE",              "%s",  0, DateMode);
+  ScanConfig (config, "UT-KEYWORD",             "%s",  0, UTKeyword);
+  ScanConfig (config, "MJD-KEYWORD",            "%s",  0, MJDKeyword);
+  ScanConfig (config, "JD-KEYWORD",             "%s",  0, JDKeyword);
+
+  ScanConfig (config, "EXPTIME-KEYWORD",        "%s",  0, ExptimeKeyword);
+
   if (*CATMODE == 0) strcpy (CATMODE, "RAW");
   if (*CATFORMAT == 0) strcpy (CATFORMAT, "ELIXIR");
Index: trunk/Ohana/src/getstar/src/ReadImageHeader.c
===================================================================
--- trunk/Ohana/src/getstar/src/ReadImageHeader.c	(revision 39997)
+++ trunk/Ohana/src/getstar/src/ReadImageHeader.c	(revision 39998)
@@ -49,7 +49,13 @@
   image[0].NY = Ny;
 
-  // if (!gfits_scan (header, "TZERO",   "%d",  1, &image[0].tzero)) {
-  // image[0].tzero = parse_time (header);
-  // }
+  /* 
+  if (!gfits_scan (header, "TZERO",   "%d",  1, &image[0].tzero)) {
+    image[0].tzero = parse_time (header);
+  }
+  gfits_scan (header, ExptimeKeyword,  "%lf", 1, &tmp);
+  image[0].exptime = tmp;
+  */
+  image[0].tzero = 1;
+  image[0].exptime = 1;
 
   /* only load astrometry, NAXIS1,2, and time if this is a MOSAIC_PHU (ctype is ....-DIS) */
Index: trunk/Ohana/src/getstar/src/parse_time.c
===================================================================
--- trunk/Ohana/src/getstar/src/parse_time.c	(revision 39997)
+++ trunk/Ohana/src/getstar/src/parse_time.c	(revision 39998)
@@ -1,3 +1,5 @@
-# include "addstar.h"
+# include <ohana.h>
+# include <dvo.h>
+# include "ReadImageFiles.h"
 
 int parse_time (Header *header) {
@@ -58,5 +60,5 @@
   /* parse mode line */
   uppercase (DateMode);
-  for (Ny = 0, c = strchr (DateMode, 'Y'); c != (char ) NULL; c = strchr (c + 1, 'Y'), Ny++);
+  for (Ny = 0, c = strchr (DateMode, 'Y'); c != (char *) NULL; c = strchr (c + 1, 'Y'), Ny++);
   if ((Ny != 2) && (Ny != 4)) {
     fprintf (stderr, "error in DATE-MODE format: %s\n", DateMode);
