~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/drizzle_time.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:
600
600
    date[4]= (uint32_t) value;
601
601
  }
602
602
  else
 
603
  {
603
604
    date[4]=0;
 
605
  }
604
606
 
605
607
  /* Check for exponent part: E<gigit> | E<sign><digit> */
606
608
  /* (may occur as result of %g formatting of time value) */
646
648
 
647
649
  /* Check if the value is valid and fits into DRIZZLE_TIME range */
648
650
  if (check_time_range(l_time, warning))
 
651
  {
649
652
    return 1;
 
653
  }
650
654
 
651
655
  /* Check if there is garbage at end of the DRIZZLE_TIME specification */
652
656
  if (str != end)
1020
1024
    number of characters written to 'to'
1021
1025
*/
1022
1026
 
1023
 
static int my_time_to_str(const DRIZZLE_TIME *l_time, char *to)
 
1027
int my_time_to_str(const DRIZZLE_TIME *l_time, char *to)
1024
1028
{
1025
1029
  uint32_t extra_hours= 0;
1026
1030
  return sprintf(to, "%s%02u:%02u:%02u",