~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/calendar.h

  • Committer: Jay Pipes
  • Date: 2009-02-28 17:49:35 UTC
  • mto: (910.2.6 mordred-noatomics)
  • mto: This revision was merged to the branch mainline in revision 908.
  • Revision ID: jpipes@serialcoder-20090228174935-yfgsw7m0n9gx8pka
Merging in old r903 temporal changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
#define UNIX_EPOCH_MAX_YEARS 2038
52
52
#define UNIX_EPOCH_MIN_YEARS 1970
53
53
 
 
54
#define CALENDAR_YY_PART_YEAR 70
 
55
 
54
56
/**
55
57
 * The following constants define the system of calculating the number
56
58
 * of days in various periods of time in the Gregorian calendar.
314
316
                                           , uint32_t month
315
317
                                           , uint32_t day
316
318
                                           , uint32_t *year_out);
 
319
/**
 
320
 * Takes a number in the form [YY]YYMM and converts it into
 
321
 * a number of months.
 
322
 *
 
323
 * @param Period in the form [YY]YYMM
 
324
 */
 
325
uint32_t year_month_to_months(uint32_t year_month);
 
326
 
 
327
/**
 
328
 * Takes a number of months and converts it to
 
329
 * a period in the form YYYYMM.
 
330
 *
 
331
 * @param Number of months
 
332
 */
 
333
uint32_t months_to_year_month(uint32_t months);
 
334
 
317
335
#ifdef __cplusplus
318
336
}
319
337
#endif