~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/temporal.h

  • Committer: Brian Aker
  • Date: 2010-12-31 21:25:11 UTC
  • mto: (2045.1.1 clean)
  • mto: This revision was merged to the branch mainline in revision 2046.
  • Revision ID: brian@tangent.org-20101231212511-bhlyaw71ij4v15au
Make more time usage private.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
#define DRIZZLED_TEMPORAL_H
44
44
 
45
45
#define DRIZZLE_MAX_SECONDS 59
46
 
#define DRIZZLE_MAX_SECONDS_WITH_LEAP 61
47
46
#define DRIZZLE_MAX_MINUTES 59
48
47
#define DRIZZLE_MAX_HOURS 23
49
48
#define DRIZZLE_MAX_DAYS 31
67
66
 
68
67
#define DRIZZLE_YY_PART_YEAR  70
69
68
 
70
 
#include <drizzled/calendar.h>
 
69
#include "drizzled/calendar.h"
71
70
 
72
71
#include <cassert>
73
72
#include <ostream>
657
656
   * @param time_t to convert from
658
657
   */
659
658
  bool from_time_t(const time_t from);
660
 
  bool from_timeval(struct timeval &_timeval);
661
659
 
662
660
  /**
663
661
   * Attempts to populate the DateTime instance based
801
799
   *
802
800
   * @param timeval to fill.
803
801
   */
804
 
  void to_timeval(struct timeval &to) const;
 
802
  void to_timeval(struct timeval *to) const;
805
803
};
806
804
 
807
805
/**