~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_time.h

  • Committer: Monty
  • Date: 2008-10-02 14:34:07 UTC
  • Revision ID: mordred@scylla.inaugust.com-20081002143407-id6de0nl3trrna4j
Fixed some max/min misses.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#endif
35
35
 
36
36
extern uint64_t log_10_int[20];
37
 
extern unsigned char days_in_month[];
 
37
extern uchar days_in_month[];
38
38
 
39
39
/*
40
40
  Portable time_t replacement.
84
84
bool check_date(const DRIZZLE_TIME *ltime, bool not_zero_date,
85
85
                   uint32_t flags, int *was_cut);
86
86
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);
 
87
str_to_datetime(const char *str, uint length, DRIZZLE_TIME *l_time,
 
88
                uint flags, int *was_cut);
89
89
int64_t number_to_datetime(int64_t nr, DRIZZLE_TIME *time_res,
90
 
                            uint32_t flags, int *was_cut);
 
90
                            uint flags, int *was_cut);
91
91
uint64_t TIME_to_uint64_t_datetime(const DRIZZLE_TIME *);
92
92
uint64_t TIME_to_uint64_t_date(const DRIZZLE_TIME *);
93
93
uint64_t TIME_to_uint64_t_time(const DRIZZLE_TIME *);
94
94
uint64_t TIME_to_uint64_t(const DRIZZLE_TIME *);
95
95
 
96
96
 
97
 
bool str_to_time(const char *str,uint32_t length, DRIZZLE_TIME *l_time,
 
97
bool str_to_time(const char *str,uint length, DRIZZLE_TIME *l_time,
98
98
                 int *warning);
99
99
 
100
100
int check_time_range(DRIZZLE_TIME *my_time, int *warning);
101
101
 
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);
 
102
long calc_daynr(uint year,uint month,uint day);
 
103
uint calc_days_in_year(uint year);
 
104
uint year_2000_handling(uint year);
105
105
 
106
106
void init_time(void);
107
107