Google
 

Trailing-Edge - PDP-10 Archives - SRI_NIC_PERM_FS_1_19910112 - kccdist/include/timex.h
There are 3 other files named timex.h in the archive. Click here to see a list.
/* TIMEX.H - Extended Time Function declarations
**
** 	Copyright (c) 1980, 1987 by Ken Harrenstien, SRI International.
**
**	These declarations more suitably belong in <time.h> but are
**	kept separate for portability.  Someday the standard time/date
**	library routines may provide the same functionality.
*/

#ifndef _TIMEX_INCLUDED		/* Include only once */
#define _TIMEX_INCLUDED

#include <time.h>		/* Ensure standard stuff included */

/* Extended structure for use by time manipulating subroutines.
*/

struct tmx {
	struct tm tm;
	struct tmz {
		long tmz_secwest;	/* Secs west of GMT (-12/+12 hrs) */
		int  tmz_minwest;	/* Same, in mins. (tmz_secwest/60) */
		int tmz_dsttype;	/* DST type if any */
		char *tmz_name;		/* Standard timezone name */
		char *tmz_dname;	/* DST timezone name (if any) */
	} tmz;
	char *tmx_err;	/* Pointer to error message if non-NULL */
	int tmx_flags;	/* Flags for possible future uses */
};

#define TMX_NULL (-1)	/* Items not specified are given this value
			 * in order to distinguish null specs from zero
			 * specs.  This is only used by partime and
			 * maketime. */
#define TMX_WILD (-2)	/* Value meaning item specified as wild-card */
			/* (Not used now, but maybe someday...) */


/* Function declarations */
int time_tzset();		/* Sets local timezone info from sys/env */
int time_lzone();		/* Return local timezone info */
int time_parse();		/* Parse string into tmx struct */
time_t time_make();		/* Make time_t from tmx */

#endif /* ifndef _TIMEX_INCLUDED */