~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/calendar.cc

Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
#include "drizzled/calendar.h"
42
42
 
 
43
namespace drizzled
 
44
{
 
45
 
43
46
/** Static arrays for number of days in a month and their "day ends" */
44
47
static const uint32_t __leap_days_in_month[12]=       {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
45
48
static const uint32_t __normal_days_in_month[12]=     {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
492
495
 
493
496
  return (years * 100) + (months % 12) + 1;
494
497
}
 
498
 
 
499
} /* namespace drizzled */