~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_time.h

  • Committer: Brian Aker
  • Date: 2008-11-04 15:39:09 UTC
  • mfrom: (575.1.2 devel)
  • Revision ID: brian@tangent.org-20081104153909-c72hn65udxs1ccal
Merge of Monty's work

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