• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2001-2004 Brandon Long
3  * All Rights Reserved.
4  *
5  * ClearSilver Templating System
6  *
7  * This code is made available under the terms of the ClearSilver License.
8  * http://www.clearsilver.net/license.hdf
9  *
10  */
11 
12 #ifndef __NEO_DATE_H_
13 #define __NEO_DATE_H_ 1
14 
15 #include <time.h>
16 
17 __BEGIN_DECLS
18 
19 /* UTC time_t -> struct tm in local timezone */
20 void neo_time_expand (const time_t tt, const char *timezone, struct tm *ttm);
21 
22 /* local timezone struct tm -> time_t UTC */
23 time_t neo_time_compact (struct tm *ttm, const char *timezone);
24 
25 /* To be portable... in seconds */
26 long neo_tz_offset(struct tm *ttm);
27 
28 __END_DECLS
29 
30 #endif /* __NEO_DATE_H_ */
31