~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/calendar.h

  • Committer: Padraig O'Sullivan
  • Date: 2010-12-03 19:16:09 UTC
  • mto: (1975.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1976.
  • Revision ID: osullivan.padraig@gmail.com-20101203191609-7s81iwt33vrgmz9v
Some re-factoring based on feedback from Monty on IRC.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 * 
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
44
44
#define DAYS_IN_NORMAL_YEAR INT32_C(365)
45
45
#define DAYS_IN_LEAP_YEAR INT32_C(366)
46
46
 
 
47
#define GREGORIAN_START_YEAR 1582
 
48
#define GREGORIAN_START_MONTH 10
 
49
#define GREGORIAN_START_DAY 15
 
50
 
 
51
#define UNIX_EPOCH_MAX_YEARS 2038
47
52
#define UNIX_EPOCH_MIN_YEARS 1970
48
 
#define UNIX_EPOCH_MAX_YEARS 2038
49
53
 
50
54
#define CALENDAR_YY_PART_YEAR 70
51
55