00001
00002
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