about summary refs log tree commit diff stats
path: root/src/parsdate.h
blob: 9853f5017775db02af12e6f462a212705b9cbac9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* $LynxId: parsdate.h,v 1.2 2010/10/31 17:56:22 tom Exp $ */
#ifndef PARSDATE_H
#define PARSDATE_H

#ifdef __cplusplus
extern "C" {
#endif
#include <LYUtils.h>
#define ARRAY_SIZE(array)       ((int) (sizeof(array) / sizeof(array[0])))
    typedef struct _TIMEINFO {
	time_t time;
	long usec;
	long tzone;
    } TIMEINFO;

    extern time_t parsedate(char *p, TIMEINFO * now);

#ifdef __cplusplus
}
#endif
#endif				/* PARSDATE_H */