~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/time_functions.cc

  • Committer: Brian Aker
  • Date: 2010-12-22 16:10:11 UTC
  • mfrom: (2017.1.2 clean)
  • Revision ID: brian@tangent.org-20101222161011-dwdhckv8ptmo471c
Rollup of build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
  to->second=   (int) from->tm_sec;
171
171
}
172
172
 
 
173
void make_time(const DRIZZLE_TIME *l_time, String *str)
 
174
{
 
175
  str->alloc(MAX_DATE_STRING_REP_LENGTH);
 
176
  uint32_t length= (uint32_t) my_time_to_str(l_time, str->c_ptr());
 
177
  str->length(length);
 
178
  str->set_charset(&my_charset_bin);
 
179
}
 
180
 
173
181
void make_date(const DRIZZLE_TIME *l_time, String *str)
174
182
{
175
183
  str->alloc(MAX_DATE_STRING_REP_LENGTH);