~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/time_functions.h

  • Committer: Brian Aker
  • Date: 2011-01-20 15:27:43 UTC
  • mfrom: (2097.1.7 drizzle-build)
  • Revision ID: brian@tangent.org-20110120152743-x88aq1sj1k9andwm
Merge of all of the time fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
  NOTE
74
74
    See description of str_to_datetime() for more information.
75
75
*/
76
 
enum enum_drizzle_timestamp_type str_to_datetime_with_warn(const char *str, 
77
 
                                                           uint32_t length,
78
 
                                                           type::Time *l_time, 
79
 
                                                           uint32_t flags);
 
76
type::timestamp_t str_to_datetime_with_warn(const char *str, 
 
77
                                            uint32_t length,
 
78
                                            type::Time *l_time, 
 
79
                                            uint32_t flags);
80
80
 
81
81
/*
82
82
  Convert a time string to a type::Time struct and produce a warning
87
87
*/
88
88
bool str_to_time_with_warn(const char *str, uint32_t length, type::Time *l_time);
89
89
 
90
 
/*
91
 
  Convert a system time structure to TIME
92
 
*/
93
 
void localtime_to_TIME(type::Time *to, struct tm *from);
94
 
 
95
 
void make_time(const type::Time *l_time, String *str);
96
 
 
97
 
void make_date(const type::Time *l_time, String *str);
98
 
 
99
 
void make_datetime(const type::Time *l_time, String *str);
100
 
 
101
90
void make_truncated_value_warning(Session *session, 
102
91
                                  DRIZZLE_ERROR::enum_warning_level level,
103
92
                                  const char *str_val,
104
93
                                  uint32_t str_length, 
105
 
                                  enum enum_drizzle_timestamp_type time_type,
 
94
                                  type::timestamp_t time_type,
106
95
                                  const char *field_name);
107
96
 
108
97
/*