~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/my_time.h

  • Committer: Brian Aker
  • Date: 2008-09-04 19:31:00 UTC
  • Revision ID: brian@tangent.org-20080904193100-l849hgghfy4urj43
Changing default character set from this point on.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#include <drizzled/global.h>
30
30
#include "drizzle_time.h"
31
31
 
32
 
#ifdef __cplusplus
33
 
extern "C" {
34
 
#endif
 
32
C_MODE_START
35
33
 
36
34
extern uint64_t log_10_int[20];
37
 
extern unsigned char days_in_month[];
 
35
extern uchar days_in_month[];
38
36
 
39
37
/*
40
38
  Portable time_t replacement.
84
82
bool check_date(const DRIZZLE_TIME *ltime, bool not_zero_date,
85
83
                   uint32_t flags, int *was_cut);
86
84
enum enum_drizzle_timestamp_type
87
 
str_to_datetime(const char *str, uint32_t length, DRIZZLE_TIME *l_time,
88
 
                uint32_t flags, int *was_cut);
 
85
str_to_datetime(const char *str, uint length, DRIZZLE_TIME *l_time,
 
86
                uint flags, int *was_cut);
89
87
int64_t number_to_datetime(int64_t nr, DRIZZLE_TIME *time_res,
90
 
                            uint32_t flags, int *was_cut);
 
88
                            uint flags, int *was_cut);
91
89
uint64_t TIME_to_uint64_t_datetime(const DRIZZLE_TIME *);
92
90
uint64_t TIME_to_uint64_t_date(const DRIZZLE_TIME *);
93
91
uint64_t TIME_to_uint64_t_time(const DRIZZLE_TIME *);
94
92
uint64_t TIME_to_uint64_t(const DRIZZLE_TIME *);
95
93
 
96
94
 
97
 
bool str_to_time(const char *str,uint32_t length, DRIZZLE_TIME *l_time,
 
95
bool str_to_time(const char *str,uint length, DRIZZLE_TIME *l_time,
98
96
                 int *warning);
99
97
 
100
98
int check_time_range(DRIZZLE_TIME *my_time, int *warning);
101
99
 
102
 
long calc_daynr(uint32_t year,uint32_t month,uint32_t day);
103
 
uint32_t calc_days_in_year(uint32_t year);
104
 
uint32_t year_2000_handling(uint32_t year);
 
100
long calc_daynr(uint year,uint month,uint day);
 
101
uint calc_days_in_year(uint year);
 
102
uint year_2000_handling(uint year);
105
103
 
106
104
void init_time(void);
107
105
 
175
173
  INTERVAL_MINUTE_MICROSECOND, INTERVAL_SECOND_MICROSECOND, INTERVAL_LAST
176
174
};
177
175
 
178
 
#ifdef __cplusplus
179
 
}
180
 
#endif
 
176
C_MODE_END
181
177
 
182
178
#endif /* _libdrizzle_my_time_h_ */