Main Page | Modules | Data Structures | File List | Data Fields

/extra/work/state-dev/src/sul/sul_parsetime.h

00001 /* ----------------------------------------------------------------------------
00002  * @(#) $Header: /home/systems/jlewalle/dev/jacob-cvs/projects/state/src/sul/sul_parsetime.h,v 1.2 2003/10/06 20:48:11 jlewalle Exp $
00003  *
00004  * --------------------------------------------------------------------------*/
00005 #if !defined(_INCLUDED_PARSETIME_H_HEADER__)
00006 #define _INCLUDED_PARSETIME_H_HEADER__
00007 
00008 #include <stdio.h>
00009 #include <time.h>
00010 
00011 typedef enum sul_parse_time_type_e
00012 {
00013   ABSOLUTE_TIME,        
00014   RELATIVE_TO_START_TIME,
00015   RELATIVE_TO_END_TIME    
00016 } sul_parse_time_type_e;
00017 
00018 typedef struct sul_parse_time_value_t
00019 {
00020   sul_parse_time_type_e type;
00021   long          offset;     
00022   struct tm     tm;        
00023 } sul_parse_time_value_t;
00024 
00025 SUL_DECLARE(char *)
00026 sul_parsetime(char *tspec, sul_parse_time_value_t *ptv);
00027 
00028 SUL_DECLARE(time_t)
00029 sul_parsetime_get_time(char *tspec);
00030 
00031 #endif

Generated on Wed Apr 28 09:38:34 2004 for State by doxygen 1.3.5