~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/time/now.h

  • Committer: Monty Taylor
  • Date: 2010-02-05 08:11:15 UTC
  • mfrom: (1283 build)
  • mto: (1273.13.43 fix_is)
  • mto: This revision was merged to the branch mainline in revision 1300.
  • Revision ID: mordred@inaugust.com-20100205081115-dr82nvrwv4lvw7sd
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
#include "drizzled/temporal.h"
26
26
 
 
27
namespace drizzled
 
28
{
 
29
 
27
30
/* Abstract CURRENT_TIMESTAMP function. See also Item_func_curtime */
28
31
 
29
32
class Item_func_now :public Item_date_func
33
36
  char buff[20*2+32];   // +32 to make my_snprintf_{8bit|ucs2} happy
34
37
  uint32_t buff_length;
35
38
  DRIZZLE_TIME ltime;
36
 
  drizzled::DateTime cached_temporal;
 
39
  DateTime cached_temporal;
37
40
public:
38
41
  Item_func_now() :Item_date_func() {}
39
42
  Item_func_now(Item *a) :Item_date_func(a) {}
49
52
   * Always returns true, since a DateTime can always be constructed
50
53
   * from a time_t
51
54
   *
52
 
   * @param Reference to a drizzled::DateTime to populate
 
55
   * @param Reference to a DateTime to populate
53
56
   */
54
 
  bool get_temporal(drizzled::DateTime &temporal);
 
57
  bool get_temporal(DateTime &temporal);
55
58
  bool get_date(DRIZZLE_TIME *res, uint32_t fuzzy_date);
56
59
  virtual void store_now_in_TIME(DRIZZLE_TIME *now_time)=0;
57
60
};
76
79
  virtual void store_now_in_TIME(DRIZZLE_TIME *now_time);
77
80
};
78
81
 
79
 
 
80
 
 
 
82
} /* namespace drizzled */
81
83
 
82
84
#endif /* DRIZZLED_FUNCTION_TIME_NOW_H */