#ifndef QSAS_PLPLOT_TIME_HELPERS_H
#define QSAS_PLPLOT_TIME_HELPERS_H

#include "time.h"
#include "plplot.h"

#ifdef __cplusplus
extern "C" {
#endif
/*********************** prototypes for mktimeutc ********************
  It would be sensible to move the mktimeutc prototype at least to plplot.h
  so that the user could take advantage of it in constructing times for
  plotting. The other two helper routines could be moved to plplotP.h or
  somewhere else.
  WARNING: mktimeutc doesn't look at tm_wday, tm_yday, or tm_isdst
***********************************************************************/
PLDLLIMPEXP time_t mktimeutc(struct tm *tm);
PLDLLIMPEXP static long JulianDay( long y, long m, long d );
PLDLLIMPEXP double mktimeEpochSecs( int year, int month, int day,
			int hour, int minute, int second );
PLDLLIMPEXP void computeFormat(PLFLT delta_t, char* fmt_subticks, char* fmt_label, PLFLT * major_interval, PLINT * n_minor_intervals, int colonFormat);
#ifdef __cplusplus
}
#endif

#endif
